mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-30 00:56:45 +01:00
Restore other entities on error
This commit is contained in:
parent
7ab299d22d
commit
762bc79f38
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user