@@ -23,18 +23,15 @@
|
||||
public class WorldServer extends World implements GeneratorAccessSeed {
|
||||
|
||||
public static final BlockPosition END_SPAWN_POINT = new BlockPosition(100, 50, 0);
|
||||
@@ -160,9 +176,9 @@
|
||||
@@ -160,7 +176,7 @@
|
||||
final List<EntityPlayer> players;
|
||||
private final ChunkProviderServer chunkSource;
|
||||
private final MinecraftServer server;
|
||||
- public final IWorldDataServer serverLevelData;
|
||||
+ public final WorldDataServer serverLevelData; // CraftBukkit - type
|
||||
final EntityTickList entityTickList;
|
||||
- private final PersistentEntitySectionManager<Entity> entityManager;
|
||||
+ public final PersistentEntitySectionManager<Entity> entityManager;
|
||||
public final PersistentEntitySectionManager<Entity> entityManager;
|
||||
public boolean noSave;
|
||||
private final SleepStatus sleepStatus;
|
||||
private int emptyTime;
|
||||
@@ -180,31 +196,52 @@
|
||||
private final StructureManager structureFeatureManager;
|
||||
private final boolean tickTime;
|
||||
@@ -543,8 +540,8 @@
|
||||
@Nullable
|
||||
@Override
|
||||
public WorldMap a(String s) {
|
||||
- return (WorldMap) this.getMinecraftServer().F().getWorldPersistentData().a(WorldMap::b, s);
|
||||
+ return (WorldMap) this.getMinecraftServer().F().getWorldPersistentData().a((nbttagcompound) -> {
|
||||
- return (WorldMap) this.getMinecraftServer().E().getWorldPersistentData().a(WorldMap::b, s);
|
||||
+ return (WorldMap) this.getMinecraftServer().E().getWorldPersistentData().a((nbttagcompound) -> {
|
||||
+ // CraftBukkit start
|
||||
+ // We only get here when the data file exists, but is not a valid map
|
||||
+ WorldMap newMap = WorldMap.b(nbttagcompound);
|
||||
@@ -559,7 +556,7 @@
|
||||
@Override
|
||||
public void a(String s, WorldMap worldmap) {
|
||||
+ worldmap.id = s; // CraftBukkit
|
||||
this.getMinecraftServer().F().getWorldPersistentData().a(s, (PersistentBase) worldmap);
|
||||
this.getMinecraftServer().E().getWorldPersistentData().a(s, (PersistentBase) worldmap);
|
||||
}
|
||||
|
||||
@@ -1432,6 +1655,11 @@
|
||||
|
||||
Reference in New Issue
Block a user