mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Allow overriding of tool level requirements when harvesting a block, via the HarvestCheck event. (#6632)
This commit is contained in:
1 parent
035c01e222
commit
9e763a8334
1 file changed
+1
-1
@@ -193,7 +193,7 @@ public class ForgeHooks
|
||||
return player.canHarvestBlock(state);
|
||||
}
|
||||
|
||||
return toolLevel >= state.getHarvestLevel();
|
||||
return ForgeEventFactory.doPlayerHarvestCheck(player, state, toolLevel >= state.getHarvestLevel());
|
||||
}
|
||||
|
||||
public static boolean canToolHarvestBlock(IWorldReader world, BlockPos pos, @Nonnull ItemStack stack)
|
||||
|
||||
Reference in new issue
Block a user