Fixed bounding block placement, fixed texture registration

This commit is contained in:
aidancbrady committed 2016-07-20 14:42:21 -04:00
1 parent a0d2d2f505
commit e8513f4dca
3 files changed
+3 -3

No files matched your search

@@ -297,7 +297,7 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
BlockPos pos1 = pos.add(xPos, yPos, zPos);
Block b = world.getBlockState(pos1).getBlock();
if(yPos > 255 || !b.isReplaceable(world, pos1))
if(pos1.getY() > 255 || !b.isReplaceable(world, pos1))
{
place = false;
}
@@ -197,7 +197,7 @@ public class ItemBlockGenerator extends ItemBlock implements IEnergizedItem, ISp
outer:
for(int yPos = 1; yPos <= 4; yPos++)
{
if(!world.isAirBlock(pos.add(0, yPos, 0)) || yPos > 255)
if(!world.isAirBlock(pos.add(0, yPos, 0)) || pos.getY()+yPos > 255)
{
place = false;
break outer;