fixed refmap issues

This commit is contained in:
gnembon committed 2019-10-10 00:27:33 -03:00
1 parent 04a21f143a
commit dee3363a0d
1 file changed
+2 -2
@@ -2812,7 +2812,7 @@ public class CarpetExpression
});
this.expr.addLazyFunction("plop", 4, (c, t, lv) ->{
return LazyValue.NULL;/*BlockValue.LocatorResult locator = BlockValue.fromParams((CarpetContext)c, lv, 0);
BlockValue.LocatorResult locator = BlockValue.fromParams((CarpetContext)c, lv, 0);
if (lv.size() <= locator.offset)
throw new InternalExpressionException("plop needs extra argument indicating what to plop");
String what = lv.get(locator.offset).evalValue(c).getString();
@@ -2821,7 +2821,7 @@ public class CarpetExpression
return (c_, t_) -> Value.NULL;
if (what.equalsIgnoreCase("boulder")) // there might be more of those
this.forceChunkUpdate(locator.block.getPos(), ((CarpetContext)c).s.getWorld());
return (c_, t_) -> new NumericValue(res);*/
return (c_, t_) -> new NumericValue(res);
});
this.expr.addLazyFunction("schedule", -1, (c, t, lv) -> {