make door save you from falling to your death
Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
parent
988ba51b78
commit
57d01bf1e7
1 changed files with 9 additions and 0 deletions
|
@ -374,6 +374,15 @@ public class dimHelper extends DimensionManager
|
||||||
int playerYCoord=MathHelper.floor_double(entity.posY);
|
int playerYCoord=MathHelper.floor_double(entity.posY);
|
||||||
int playerZCoord=MathHelper.floor_double(entity.posZ);
|
int playerZCoord=MathHelper.floor_double(entity.posZ);
|
||||||
|
|
||||||
|
|
||||||
|
if(!entity.worldObj.isBlockOpaqueCube(playerXCoord, playerYCoord-1,playerZCoord ))
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
entity.worldObj.setBlock(playerXCoord, playerYCoord-1, playerZCoord, mod_pocketDim.blockDimWallID);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(Block.blocksList.length>=entity.worldObj.getBlockId(playerXCoord,playerYCoord+1,playerZCoord)&&!entity.worldObj.isAirBlock(playerXCoord,playerYCoord+1,playerZCoord))
|
if(Block.blocksList.length>=entity.worldObj.getBlockId(playerXCoord,playerYCoord+1,playerZCoord)&&!entity.worldObj.isAirBlock(playerXCoord,playerYCoord+1,playerZCoord))
|
||||||
{
|
{
|
||||||
if(Block.blocksList[entity.worldObj.getBlockId(playerXCoord,playerYCoord+1,playerZCoord)].isOpaqueCube())
|
if(Block.blocksList[entity.worldObj.getBlockId(playerXCoord,playerYCoord+1,playerZCoord)].isOpaqueCube())
|
||||||
|
|
Loading…
Reference in a new issue