Fixed incense altar so that it checked two blocks above its level properly.

This commit is contained in:
WayofTime 2016-02-15 07:11:02 -05:00
parent 64efaf854b
commit 18a36b9778

View file

@ -142,7 +142,7 @@ public class TileIncenseAltar extends TileInventory implements ITickable
for (int y = 0 + yOffset; y <= 2 + yOffset; y++)
{
BlockPos offsetPos = pos.add(i, yOffset, j);
BlockPos offsetPos = pos.add(i, y, j);
IBlockState state = worldObj.getBlockState(offsetPos);
Block block = state.getBlock();
TranquilityStack stack = IncenseTranquilityRegistry.getTranquilityOfBlock(worldObj, offsetPos, block, state);