Fix miss-aligned patch ItemEntity (#6895)

This commit is contained in:
ichttt 2020-07-01 20:14:16 +02:00 committed by GitHub
parent bf1a0461cb
commit d11a582a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -78,14 +78,14 @@
if (this.func_200214_m() != null) {
p_213281_1_.func_186854_a("Thrower", this.func_200214_m());
}
@@ -259,6 +277,7 @@
if (this.func_200215_l() != null) {
p_213281_1_.func_186854_a("Owner", this.func_200215_l());
@@ -272,6 +290,7 @@
if (p_70037_1_.func_74764_b("PickupDelay")) {
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()) {
p_213281_1_.func_218657_a("Item", this.func_92059_d().func_77955_b(new CompoundNBT()));
if (p_70037_1_.func_186855_b("Owner")) {
this.field_145802_g = p_70037_1_.func_186857_a("Owner");
@@ -291,10 +310,18 @@
public void func_70100_b_(PlayerEntity p_70100_1_) {

View File

@ -3,7 +3,7 @@
@@ -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 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_.addToolType(net.minecraftforge.common.ToolType.HOE, p_i231595_1_.func_200925_d()));
}