This commit is contained in:
gnembon committed 2019-05-23 15:59:43 -03:00
1 parent b257e6f984
commit e3c0edae3c
14 files changed
+501 -326

No files matched your search

@@ -2,7 +2,7 @@ package carpet.script;
import carpet.CarpetServer;
import carpet.CarpetSettings;
// import carpet.helpers.FeatureGenerator; todo
import carpet.helpers.FeatureGenerator;
import carpet.fakes.MinecraftServerInterface;
import carpet.script.exception.CarpetExpressionException;
import carpet.script.exception.ExpressionException;
@@ -1878,13 +1878,13 @@ public class CarpetExpression
return (cc, tt) -> retval;
});
/*this.expr.addLazyFunction("plop", 4, (c, t, lv) ->{
this.expr.addLazyFunction("plop", 4, (c, t, lv) ->{
BlockValue.LocatorResult locator = BlockValue.fromParams((CarpetContext)c, lv, 0);
Boolean res = FeatureGenerator.spawn(lv.get(locator.offset).evalValue(c).getString(), ((CarpetContext)c).s.getWorld(), locator.block.getPos());
if (res == null)
return (c_, t_) -> Value.NULL;
return (c_, t_) -> new NumericValue(res);
});*/
});
}
/**