1.16-pre6

This commit is contained in:
gnembon committed 2020-06-15 18:59:09 -03:00
1 parent 5bf1b734dc
commit b21731884f
4 files changed
+10 -10

No files matched your search

@@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(World.class)
public abstract class World_fillUpdatesMixin
{
@ModifyConstant(method = "setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z",
@ModifyConstant(method = "method_30092", //setBlockState main
constant = @Constant(intValue = 16))
private int addFillUpdatesInt(int original) {
if (CarpetSettings.impendingFillSkipUpdates)
@@ -21,7 +21,7 @@ public abstract class World_fillUpdatesMixin
return original;
}
@Redirect(method = "setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z", at = @At(
@Redirect(method = "method_30092", at = @At( //setBlockState main
value = "INVOKE",
target = "Lnet/minecraft/world/World;updateNeighbors(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V"
))