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)); } } }