Fixed beds not working properly when respawning.

This commit is contained in:
LexManos 2012-11-17 17:52:37 -08:00
parent ba65c08f19
commit 5b324861a0

View file

@ -279,7 +279,7 @@
+ ChunkCoordinates c = par1ChunkCoordinates;
+ Block block = Block.blocksList[par0World.getBlockId(c.posX, c.posY, c.posZ)];
+
+ if (block == null || !block.isBed(par0World, c.posX, c.posY, c.posZ, null))
+ if (block != null && block.isBed(par0World, c.posX, c.posY, c.posZ, null))
+ {
+ ChunkCoordinates var8 = block.getBedSpawnPosition(par0World, c.posX, c.posY, c.posZ, null);
return var8;