mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
55 lines
1.8 KiB
Diff
55 lines
1.8 KiB
Diff
--- ../src-base/common/net/minecraft/src/AnvilChunkLoader.java
|
|
+++ ../src-work/common/net/minecraft/src/AnvilChunkLoader.java
|
|
@@ -9,6 +9,9 @@
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
+import java.util.logging.Level;
|
|
+
|
|
+import cpw.mods.fml.common.FMLLog;
|
|
|
|
public class AnvilChunkLoader implements IThreadedFileIO, IChunkLoader
|
|
{
|
|
@@ -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();
|
|
- var21.func_70310_b(var10);
|
|
- var16.func_74742_a(var10);
|
|
+ try
|
|
+ {
|
|
+ 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());
|
|
+ }
|
|
}
|
|
|
|
p_75820_3_.func_74782_a("TileEntities", var16);
|