We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4af655 commit 1c7b71fCopy full SHA for 1c7b71f
src/legacy/api/BlockAPI.cpp
@@ -423,14 +423,14 @@ Local<Value> McClass::getBlock(const Arguments& args) {
423
if (IsInstanceOf<IntPos>(args[0])) {
424
// IntPos
425
IntPos* posObj = IntPos::extractPos(args[0]);
426
- if (posObj->dim < 0) return Boolean::newBoolean(false);
+ if (posObj->dim < 0) return {};
427
else {
428
pos = *posObj;
429
}
430
} else if (IsInstanceOf<FloatPos>(args[0])) {
431
// FloatPos
432
FloatPos* posObj = FloatPos::extractPos(args[0]);
433
434
435
pos = posObj->toIntVec4();
436
0 commit comments