Call Harvest check event even if the block doesn't require any tool (#7414)

This commit is contained in:
Boy132 2020-11-10 20:36:32 +01:00 committed by GitHub
parent 9bbfbd5479
commit 9a4a501a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,7 +177,7 @@ public class ForgeHooks
{
//state = state.getActualState(world, pos);
if (!state.getRequiresTool())
return true;
return ForgeEventFactory.doPlayerHarvestCheck(player, state, true);
ItemStack stack = player.getHeldItemMainhand();
ToolType tool = state.getHarvestTool();