Fixed beds not working properly when respawning.
This commit is contained in:
parent
ba65c08f19
commit
5b324861a0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue