Skip to content

Commit

Permalink
Use constant in FallingBlockEntityMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
altrisi committed Sep 24, 2023
1 parent 32b8d5d commit 0840ba2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit 0840ba2

Please sign in to comment.