summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-10-29 04:32:20 -0400
committerEvilSeph <evilseph@gmail.com>2012-10-29 04:56:30 -0400
commit14f4bd9024cfdeb3a7d04c1ce3e688e38038722d (patch)
treeaaf769d1aec207f1e22f92e3928b78e5185ef96f /src
parentd16f8c5e652c61a7d88ff863ea154a64df4fb6c1 (diff)
downloadcraftbukkit-14f4bd9024cfdeb3a7d04c1ce3e688e38038722d.tar
craftbukkit-14f4bd9024cfdeb3a7d04c1ce3e688e38038722d.tar.gz
craftbukkit-14f4bd9024cfdeb3a7d04c1ce3e688e38038722d.tar.lz
craftbukkit-14f4bd9024cfdeb3a7d04c1ce3e688e38038722d.tar.xz
craftbukkit-14f4bd9024cfdeb3a7d04c1ce3e688e38038722d.zip
Fix bug preventing non bed-reliant spawns from being successfully set. Fixes BUKKIT-2708
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java
index 93e8ef6f..2dbe4eee 100644
--- a/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java
+++ b/src/main/java/net/minecraft/server/ServerConfigurationManagerAbstract.java
@@ -344,7 +344,7 @@ public abstract class ServerConfigurationManagerAbstract {
boolean isBedSpawn = false;
CraftWorld cworld = (CraftWorld) this.server.server.getWorld(entityplayer.spawnWorld);
if (cworld != null && chunkcoordinates != null) {
- chunkcoordinates1 = EntityHuman.getBed(cworld.getHandle(), chunkcoordinates, flag);
+ chunkcoordinates1 = EntityHuman.getBed(cworld.getHandle(), chunkcoordinates, flag1);
if (chunkcoordinates1 != null) {
isBedSpawn = true;
location = new Location(cworld, chunkcoordinates1.x + 0.5, chunkcoordinates1.y, chunkcoordinates1.z + 0.5);