fix vajra voiding

This commit is contained in:
Lyfts authored and glowredman committed 2023-10-18 19:41:50 +02:00
1 parent 823ee19cc7
commit c207fad52d
1 file changed
+4 -2
@@ -87,8 +87,10 @@ public class MixinItemVajra {
private void gravisuiteneo$fixCallOrder(Block block, World world, EntityPlayer player, int x, int y, int z,
int meta) {
block.onBlockHarvested(world, x, y, z, meta, player);
world.setBlockToAir(x, y, z);
block.harvestBlock(world, player, x, y, z, meta);
if (block.removedByPlayer(world, player, x, y, z, true)) {
block.onBlockDestroyedByPlayer(world, x, y, z, meta);
block.harvestBlock(world, player, x, y, z, meta);
}
}
// This one makes sure that if we're mining a block that canSilkHarvest it still gets set to air, since we yeeted