Fixed a wrong argument for dimensions, should fix entity tracking.

This commit is contained in:
LexManos 2012-03-12 12:18:42 -07:00
parent 6c6d4a7ed9
commit 02b3c0042d
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@
+ for (Integer id : DimensionManager.getIDs()) + for (Integer id : DimensionManager.getIDs())
+ { + {
+ WorldServer world = (id == 0 ? overWorld : new WorldServerMulti(this, var9, par2Str, id, var8, overWorld)); + WorldServer world = (id == 0 ? overWorld : new WorldServerMulti(this, var9, par2Str, id, var8, overWorld));
+ world.addWorldAccess(new WorldManager(this, overWorld)); + world.addWorldAccess(new WorldManager(this, world));
+ world.difficultySetting = propertyManagerObj.getIntProperty("difficulty", 1); + world.difficultySetting = propertyManagerObj.getIntProperty("difficulty", 1);
+ world.setAllowedSpawnTypes(propertyManagerObj.getBooleanProperty("spawn-monsters", true), spawnPeacefulMobs); + world.setAllowedSpawnTypes(propertyManagerObj.getBooleanProperty("spawn-monsters", true), spawnPeacefulMobs);
+ world.getWorldInfo().setGameType(var6); + world.getWorldInfo().setGameType(var6);