mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 13:09:59 +00:00
Revert changes to ItemTool for binary compatibility (#3211)
This commit is contained in:
1 parent
8dbfe1baad
commit
3222a9a771
1 file changed
+2
-2
@@ -50,9 +50,9 @@
|
||||
+ /*===================================== FORGE START =================================*/
|
||||
+ private String toolClass;
|
||||
+ @Override
|
||||
+ public int getHarvestLevel(ItemStack stack, String toolClass, @javax.annotation.Nullable net.minecraft.entity.player.EntityPlayer player, @javax.annotation.Nullable IBlockState blockState)
|
||||
+ public int getHarvestLevel(ItemStack stack, String toolClass)
|
||||
+ {
|
||||
+ int level = super.getHarvestLevel(stack, toolClass, player, blockState);
|
||||
+ int level = super.getHarvestLevel(stack, toolClass);
|
||||
+ if (level == -1 && toolClass != null && toolClass.equals(this.toolClass))
|
||||
+ {
|
||||
+ return this.field_77862_b.func_77996_d();
|
||||
|
||||
Reference in new issue
Block a user