Fix IForgeBlock.removedByPlayer not firing on the client. (#6638)

This commit is contained in:
covers1624 authored and GitHub committed 2020-05-11 15:28:38 -07:00
1 parent 1a317a7306
commit 99d8fa1a6b
2 files changed
+18 -12

No files matched your search

@@ -215,7 +215,7 @@ public interface IForgeBlock
default boolean removedByPlayer(BlockState state, World world, BlockPos pos, PlayerEntity player, boolean willHarvest, IFluidState fluid)
{
getBlock().onBlockHarvested(world, pos, state, player);
return world.removeBlock(pos, false);
return world.setBlockState(pos, fluid.getBlockState(), world.isRemote ? 11 : 3);
}
/**