Merge pull request #7 from Thaumic-Tinkerer/1.7-final

1.7 final
This commit is contained in:
Martin Robertz authored and GitHub committed 2018-02-18 09:44:51 +01:00
commit 7a6f26f915
1 file changed
+6
@@ -152,6 +152,12 @@ public class BlockBedrockPortal extends BlockMod {
while (entity.worldObj.getBlock(x, y, z) == Blocks.air || entity.worldObj.getBlock(x, y, z).isAir(par1World, x, y, z)) {
y--;
// Avoid infinite loop.
if (y <= 1) {
y = 120;
// Set up the scaffolding.
entity.worldObj.setBlock(x, y - 1, z, Blocks.stone);
}
}
((EntityPlayerMP) entity).playerNetServerHandler.setPlayerLocation(x + 0.5, y + 3, z + 0.5, 0, 0);