Restore other entities on error

This commit is contained in:
boy0001 2015-02-10 03:24:06 +11:00
parent 7ab299d22d
commit 762bc79f38

View File

@ -231,8 +231,13 @@ public class ChunkManager {
public static void restoreEntities(World world, int x_offset, int z_offset) { public static void restoreEntities(World world, int x_offset, int z_offset) {
for (EntityWrapper entity : entities) { for (EntityWrapper entity : entities) {
try {
entity.spawn(world, x_offset, z_offset); entity.spawn(world, x_offset, z_offset);
} }
catch (Exception e) {
e.printStackTrace();
}
}
} }
public static void restoreBlocks(World world, int x_offset, int z_offset) { public static void restoreBlocks(World world, int x_offset, int z_offset) {