Add alternative ItemAxe Constructor
This commit is contained in:
parent
1fbadb0ead
commit
614ba8fa73
1 changed files with 16 additions and 0 deletions
16
patches/minecraft/net/minecraft/item/ItemAxe.java.patch
Normal file
16
patches/minecraft/net/minecraft/item/ItemAxe.java.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- ../src-base/minecraft/net/minecraft/item/ItemAxe.java
|
||||||
|
+++ ../src-work/minecraft/net/minecraft/item/ItemAxe.java
|
||||||
|
@@ -20,6 +20,13 @@
|
||||||
|
this.field_185065_c = field_185067_n[p_i45327_1_.ordinal()];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ protected ItemAxe(Item.ToolMaterial material, int damage, int speed)
|
||||||
|
+ {
|
||||||
|
+ super(material, field_150917_c);
|
||||||
|
+ this.field_77865_bY = damage;
|
||||||
|
+ this.field_185065_c = speed;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
public float func_150893_a(ItemStack p_150893_1_, IBlockState p_150893_2_)
|
||||||
|
{
|
||||||
|
Material material = p_150893_2_.func_185904_a();
|
Loading…
Reference in a new issue