Revert changes to ItemTool for binary compatibility (#3211)
This commit is contained in:
parent
8dbfe1baad
commit
3222a9a771
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@
|
||||||
+ /*===================================== FORGE START =================================*/
|
+ /*===================================== FORGE START =================================*/
|
||||||
+ private String toolClass;
|
+ private String toolClass;
|
||||||
+ @Override
|
+ @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))
|
+ if (level == -1 && toolClass != null && toolClass.equals(this.toolClass))
|
||||||
+ {
|
+ {
|
||||||
+ return this.field_77862_b.func_77996_d();
|
+ return this.field_77862_b.func_77996_d();
|
||||||
|
|
Loading…
Reference in a new issue