SPIGOT-5901: Improve multiworld support

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-07-17 08:56:56 +10:00
parent f313337709
commit deab30f8b2
3 changed files with 29 additions and 4 deletions

View File

@@ -655,7 +655,12 @@
}
public int getPlayerCount() {
@@ -747,27 +1035,50 @@
@@ -743,31 +1031,54 @@
entityplayer.playerInteractManager.a(this.u, EnumGamemode.NOT_SET);
}
- entityplayer.playerInteractManager.b(worldserver.getMinecraftServer().getSaveData().getGameType());
+ entityplayer.playerInteractManager.b(worldserver.worldDataServer.getGameType()); // CraftBukkit
}
public void shutdown() {