Fix miss-aligned patch ItemEntity (#6895)
This commit is contained in:
parent
bf1a0461cb
commit
d11a582a25
|
@ -78,14 +78,14 @@
|
||||||
if (this.func_200214_m() != null) {
|
if (this.func_200214_m() != null) {
|
||||||
p_213281_1_.func_186854_a("Thrower", this.func_200214_m());
|
p_213281_1_.func_186854_a("Thrower", this.func_200214_m());
|
||||||
}
|
}
|
||||||
@@ -259,6 +277,7 @@
|
@@ -272,6 +290,7 @@
|
||||||
if (this.func_200215_l() != null) {
|
if (p_70037_1_.func_74764_b("PickupDelay")) {
|
||||||
p_213281_1_.func_186854_a("Owner", this.func_200215_l());
|
this.field_145804_b = p_70037_1_.func_74765_d("PickupDelay");
|
||||||
}
|
}
|
||||||
+ if (p_213281_1_.func_74764_b("Lifespan")) lifespan = p_213281_1_.func_74762_e("Lifespan");
|
+ if (p_70037_1_.func_74764_b("Lifespan")) lifespan = p_70037_1_.func_74762_e("Lifespan");
|
||||||
|
|
||||||
if (!this.func_92059_d().func_190926_b()) {
|
if (p_70037_1_.func_186855_b("Owner")) {
|
||||||
p_213281_1_.func_218657_a("Item", this.func_92059_d().func_77955_b(new CompoundNBT()));
|
this.field_145802_g = p_70037_1_.func_186857_a("Owner");
|
||||||
@@ -291,10 +310,18 @@
|
@@ -291,10 +310,18 @@
|
||||||
|
|
||||||
public void func_70100_b_(PlayerEntity p_70100_1_) {
|
public void func_70100_b_(PlayerEntity p_70100_1_) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
@@ -21,13 +21,15 @@
|
@@ -21,13 +21,15 @@
|
||||||
protected static final Map<Block, BlockState> field_195973_b = Maps.newHashMap(ImmutableMap.of(Blocks.field_196658_i, Blocks.field_150458_ak.func_176223_P(), Blocks.field_185774_da, Blocks.field_150458_ak.func_176223_P(), Blocks.field_150346_d, Blocks.field_150458_ak.func_176223_P(), Blocks.field_196660_k, Blocks.field_150346_d.func_176223_P()));
|
protected static final Map<Block, BlockState> field_195973_b = Maps.newHashMap(ImmutableMap.of(Blocks.field_196658_i, Blocks.field_150458_ak.func_176223_P(), Blocks.field_185774_da, Blocks.field_150458_ak.func_176223_P(), Blocks.field_150346_d, Blocks.field_150458_ak.func_176223_P(), Blocks.field_196660_k, Blocks.field_150346_d.func_176223_P()));
|
||||||
|
|
||||||
protected HoeItem(IItemTier p_i231595_1_, int p_i231595_2_, float p_i231595_3_, Item.Properties p_i231595_4_) {
|
public HoeItem(IItemTier p_i231595_1_, int p_i231595_2_, float p_i231595_3_, Item.Properties p_i231595_4_) {
|
||||||
- super((float)p_i231595_2_, p_i231595_3_, p_i231595_1_, field_234683_c_, p_i231595_4_);
|
- super((float)p_i231595_2_, p_i231595_3_, p_i231595_1_, field_234683_c_, p_i231595_4_);
|
||||||
+ super((float)p_i231595_2_, p_i231595_3_, p_i231595_1_, field_234683_c_, p_i231595_4_.addToolType(net.minecraftforge.common.ToolType.HOE, p_i231595_1_.func_200925_d()));
|
+ super((float)p_i231595_2_, p_i231595_3_, p_i231595_1_, field_234683_c_, p_i231595_4_.addToolType(net.minecraftforge.common.ToolType.HOE, p_i231595_1_.func_200925_d()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue