Fix entity write catch block (#3726)

This commit is contained in:
Bartek Bok 2017-02-25 01:03:19 +01:00 committed by LexManos
parent c49ff259b5
commit 724ffe1d70
1 changed files with 13 additions and 10 deletions

View File

@ -107,14 +107,17 @@
this.func_75824_a(p_75816_2_.func_76632_l(), nbttagcompound);
}
catch (Exception exception)
@@ -307,8 +368,17 @@
if (entity.func_70039_c(nbttagcompound2))
@@ -305,11 +366,20 @@
{
NBTTagCompound nbttagcompound2 = new NBTTagCompound();
+ try
+ {
if (entity.func_70039_c(nbttagcompound2))
{
p_75820_1_.func_177409_g(true);
nbttaglist1.func_74742_a(nbttagcompound2);
}
+ }
+ catch (Exception e)
+ {
@ -124,7 +127,7 @@
+ }
}
}
}
@@ -318,8 +388,17 @@
for (TileEntity tileentity : p_75820_1_.func_177434_r().values())