Merge branch 'master' into 1.17
# Conflicts: # gradle.properties # src/main/java/carpet/mixins/World_movableTEMixin.java
This commit is contained in:
commit
94b47c1272
1 file changed
+1
-2
@@ -614,7 +614,7 @@ public class Auxiliary {
|
|||||||
return (cc, tt) -> retval;
|
return (cc, tt) -> retval;
|
||||||
});
|
});
|
||||||
|
|
||||||
expression.addLazyFunction("plop", 4, (c, t, lv) ->{
|
expression.addLazyFunction("plop", -1, (c, t, lv) ->{
|
||||||
BlockArgument locator = BlockArgument.findIn((CarpetContext)c, lv, 0);
|
BlockArgument locator = BlockArgument.findIn((CarpetContext)c, lv, 0);
|
||||||
if (lv.size() <= locator.offset)
|
if (lv.size() <= locator.offset)
|
||||||
throw new InternalExpressionException("'plop' needs extra argument indicating what to plop");
|
throw new InternalExpressionException("'plop' needs extra argument indicating what to plop");
|
||||||
@@ -624,7 +624,6 @@ public class Auxiliary {
|
|||||||
{
|
{
|
||||||
Boolean res = FeatureGenerator.plop(what, ((CarpetContext) c).s.getWorld(), locator.block.getPos());
|
Boolean res = FeatureGenerator.plop(what, ((CarpetContext) c).s.getWorld(), locator.block.getPos());
|
||||||
|
|
||||||
//Boolean res = FeatureGenerator.spawn(what, ((CarpetContext) c).s.getWorld(), locator.block.getPos());
|
|
||||||
if (res == null)
|
if (res == null)
|
||||||
return;
|
return;
|
||||||
if (what.equalsIgnoreCase("boulder")) // there might be more of those
|
if (what.equalsIgnoreCase("boulder")) // there might be more of those
|
||||||
|
|||||||
Reference in new issue
Block a user