From 762bc79f3842e050c550d7c98d6969e6fc92ca63 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 10 Feb 2015 03:24:06 +1100 Subject: [PATCH] Restore other entities on error --- .../com/intellectualcrafters/plot/util/ChunkManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ChunkManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ChunkManager.java index 3c15c481a..f22175736 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ChunkManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ChunkManager.java @@ -231,7 +231,12 @@ public class ChunkManager { public static void restoreEntities(World world, int x_offset, int z_offset) { for (EntityWrapper entity : entities) { - entity.spawn(world, x_offset, z_offset); + try { + entity.spawn(world, x_offset, z_offset); + } + catch (Exception e) { + e.printStackTrace(); + } } }