From 0840ba2c5fc7dd23e7416a816655d3375bd3ae3c Mon Sep 17 00:00:00 2001 From: altrisi Date: Sun, 24 Sep 2023 16:06:39 +0200 Subject: [PATCH] Use constant in FallingBlockEntityMixin --- src/main/java/carpetextra/mixins/FallingBlockEntityMixin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/carpetextra/mixins/FallingBlockEntityMixin.java b/src/main/java/carpetextra/mixins/FallingBlockEntityMixin.java index 5968d9e3..cb79d6a3 100644 --- a/src/main/java/carpetextra/mixins/FallingBlockEntityMixin.java +++ b/src/main/java/carpetextra/mixins/FallingBlockEntityMixin.java @@ -10,6 +10,8 @@ import net.minecraft.registry.tag.BlockTags; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; +import net.minecraft.world.WorldEvents; + import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; @@ -73,7 +75,7 @@ private void onTick(CallbackInfo ci) { BlockState newBlock = iceProgression.get(below).getDefaultState(); world.setBlockState(getBlockPos().down(), newBlock, 3); - world.syncWorldEvent(2001, getBlockPos().down(), Block.getRawIdFromState(newBlock)); + world.syncWorldEvent(WorldEvents.BLOCK_BROKEN, getBlockPos().down(), Block.getRawIdFromState(newBlock)); } } }