mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Fix some whitespace issues, handle possibly bugged entities as well
This commit is contained in:
1 parent
01048c704b
commit
1bd53fe75f
4 files changed
+83
-13
No files matched your search
@@ -10,7 +10,29 @@
|
||||
|
||||
public class AnvilChunkLoader implements IThreadedFileIO, IChunkLoader
|
||||
{
|
||||
@@ -242,8 +245,15 @@
|
||||
@@ -227,9 +230,18 @@
|
||||
p_75820_1_.field_76644_m = true;
|
||||
var10 = new NBTTagCompound();
|
||||
|
||||
- if (var19.func_70039_c(var10))
|
||||
- {
|
||||
- var15.func_74742_a(var10);
|
||||
+ try
|
||||
+ {
|
||||
+ if (var19.func_70039_c(var10))
|
||||
+ {
|
||||
+ var15.func_74742_a(var10);
|
||||
+ }
|
||||
+ }
|
||||
+ catch (Exception e)
|
||||
+ {
|
||||
+ FMLLog.log(Level.SEVERE, e,
|
||||
+ "An Entity type %s has thrown an exception trying to write state. It will not persist. Report this to the mod author",
|
||||
+ var19.getClass().getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -242,8 +254,17 @@
|
||||
{
|
||||
TileEntity var21 = (TileEntity)var17.next();
|
||||
var10 = new NBTTagCompound();
|
||||
@@ -18,12 +40,14 @@
|
||||
- var16.func_74742_a(var10);
|
||||
+ try
|
||||
+ {
|
||||
+ var21.func_70310_b(var10);
|
||||
+ var21.func_70310_b(var10);
|
||||
+ var16.func_74742_a(var10);
|
||||
+ }
|
||||
+ catch (Exception e)
|
||||
+ {
|
||||
+ FMLLog.log(Level.SEVERE, e, "A TileEntity type %s has throw an exception trying to write state. It will not persist. Report this to the mod author", var21.getClass().getName());
|
||||
+ FMLLog.log(Level.SEVERE, e,
|
||||
+ "A TileEntity type %s has throw an exception trying to write state. It will not persist. Report this to the mod author",
|
||||
+ var21.getClass().getName());
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user