We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47bb404 commit 3492116Copy full SHA for 3492116
src/legacy/api/EntityAPI.cpp
@@ -1573,6 +1573,8 @@ Local<Value> McClass::getEntities(const Arguments& args) {
1573
LOG_TOO_FEW_ARGS(__FUNCTION__);
1574
return Local<Value>();
1575
}
1576
+ aabb.max += dis;
1577
+ aabb.min -= dis;
1578
1579
auto arr = Array::newArray();
1580
auto dimension = ll::service::getLevel()->getDimension(dim);
@@ -1581,7 +1583,7 @@ Local<Value> McClass::getEntities(const Arguments& args) {
1581
1583
1582
1584
1585
BlockSource& bs = dimension.lock()->getBlockSourceFromMainChunkSource();
- auto entityList = bs.getEntities(aabb, dis);
1586
+ auto entityList = bs.getEntities(aabb);
1587
for (auto i : entityList) {
1588
arr.add(EntityClass::newEntity(i));
1589
0 commit comments