From 35621b2667900eda8348cddf80a2bdfb54d80f94 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 21 Apr 2011 15:43:09 +0100 Subject: [PATCH] Java compat By: Dinnerbone --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 987ab35526..31562f7dc2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -4,6 +4,7 @@ import com.avaje.ebean.config.DataSourceConfig; import com.avaje.ebean.config.ServerConfig; import com.avaje.ebean.config.dbplatform.SQLitePlatform; import com.avaje.ebeaninternal.server.lib.sql.TransactionIsolation; +import net.minecraft.server.IWorldAccess; import org.bukkit.command.*; import org.bukkit.entity.Player; import org.bukkit.event.world.WorldLoadEvent; @@ -314,7 +315,7 @@ public final class CraftServer implements Server { WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, environment == World.Environment.NETHER ? -1 : 0, seed); - internal.addIWorldAccess(new WorldManager(console, internal)); + internal.addIWorldAccess((IWorldAccess)new WorldManager(console, internal)); internal.spawnMonsters = 1; internal.setSpawnFlags(true, true); console.serverConfigurationManager.setPlayerFileData(internal);