From f789c9e744ca0fdb6f8cbb1afb71bd94f03406ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Sat, 12 Feb 2011 15:57:31 +0100 Subject: [PATCH] Replace a net.minecraft accessor with a public attr. --- .../net/minecraft/server/ServerConfigurationManager.java | 6 +----- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 70e3ea397e..553b964719 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -29,7 +29,7 @@ public class ServerConfigurationManager { public List b = new ArrayList(); public MinecraftServer c; // Craftbukkit - public // public PlayerManager d; // Craftbukkit - removed! - private int e; + public int e; // Craftbukkit - public private Set f = new HashSet(); private Set g = new HashSet(); private Set h = new HashSet(); @@ -41,10 +41,6 @@ public class ServerConfigurationManager { // CraftBukkit start private CraftServer server; - public int getMaxPlayers() { - return this.e; - } - public ServerConfigurationManager(MinecraftServer minecraftserver) { minecraftserver.server = new CraftServer(minecraftserver, this); server = minecraftserver.server; diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 623fc3f9e9..9d30b79ceb 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -148,7 +148,7 @@ public final class CraftServer implements Server { } public int getMaxPlayers() { - return server.getMaxPlayers(); + return server.e; } public PluginManager getPluginManager() {