This commit is contained in:
gnembon committed 2020-10-02 18:07:59 -03:00
1 parent 8a2ddcbf2a
commit 1c1fb5eb59
5 files changed
+18 -9

No files matched your search

@@ -1,5 +1,6 @@
package carpet.script.api;
import carpet.fakes.SpawnHelperInnerInterface;
import carpet.script.CarpetContext;
import carpet.script.Expression;
import carpet.script.LazyValue;
@@ -30,7 +31,7 @@ public class Monitoring {
SpawnHelper.Info info = world.getChunkManager().getSpawnInfo();
if (info == null) return LazyValue.NULL;
Object2IntMap<SpawnGroup> mobcounts = info.getGroupToCount();
int chunks = info.getSpawningChunkCount();
int chunks = ((SpawnHelperInnerInterface)info).cmGetChunkCount();
Value retVal;
if (lv.size() == 0)
{