41a complete

This commit is contained in:
gnembon committed 2019-10-10 00:28:49 -03:00
1 parent 7b649f9ccd
commit ec0be058ac
4 files changed
+7 -7

No files matched your search

@@ -14,7 +14,7 @@ public class MinecraftClientMixin
{ {
//to inject right before //to inject right before
// this.tickWorlds(booleanSupplier_1); // this.tickWorlds(booleanSupplier_1);
@Inject(method = "start", at = @At(value = "HEAD") @Inject(method = "run", at = @At(value = "HEAD")
) )
private void onInit(CallbackInfo ci) { private void onInit(CallbackInfo ci) {
//CM start game hook //CM start game hook
@@ -110,7 +110,7 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
this.getServerWorld().method_14178().updateCameraPosition(this); this.getServerWorld().method_14178().updateCameraPosition(this);
} }
super.tick(); super.tick();
this.method_14226(); this.playerTick();
} }
@Override @Override
@@ -2811,8 +2811,8 @@ public class CarpetExpression
return (cc, tt) -> retval; 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); return LazyValue.NULL;/*BlockValue.LocatorResult locator = BlockValue.fromParams((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");
String what = lv.get(locator.offset).evalValue(c).getString(); String what = lv.get(locator.offset).evalValue(c).getString();
@@ -2821,8 +2821,8 @@ public class CarpetExpression
return (c_, t_) -> Value.NULL; return (c_, t_) -> Value.NULL;
if (what.equalsIgnoreCase("boulder")) // there might be more of those if (what.equalsIgnoreCase("boulder")) // there might be more of those
this.forceChunkUpdate(locator.block.getPos(), ((CarpetContext)c).s.getWorld()); 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) -> { this.expr.addLazyFunction("schedule", -1, (c, t, lv) -> {
if (lv.size()<2) if (lv.size()<2)
+1 -1
View File
@@ -68,7 +68,7 @@
"SaplingBlockMixin", "SaplingBlockMixin",
"EntityMixin", "EntityMixin",
"class_4548_getBiomeArrayMixin", "BiomeArray_getBiomeArrayMixin",
"GuardianEntityMixin", "GuardianEntityMixin",
"DesertPyramidFeatureMixin", "DesertPyramidFeatureMixin",