Revert changes to ItemTool for binary compatibility (#3211)

This commit is contained in:
boni 2016-08-20 22:53:04 +02:00 committed by LexManos
parent 8dbfe1baad
commit 3222a9a771

View file

@ -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();