Fixed incense altar so that it checked two blocks above its level properly.
This commit is contained in:
parent
64efaf854b
commit
18a36b9778
|
@ -142,7 +142,7 @@ public class TileIncenseAltar extends TileInventory implements ITickable
|
||||||
|
|
||||||
for (int y = 0 + yOffset; y <= 2 + yOffset; y++)
|
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);
|
IBlockState state = worldObj.getBlockState(offsetPos);
|
||||||
Block block = state.getBlock();
|
Block block = state.getBlock();
|
||||||
TranquilityStack stack = IncenseTranquilityRegistry.getTranquilityOfBlock(worldObj, offsetPos, block, state);
|
TranquilityStack stack = IncenseTranquilityRegistry.getTranquilityOfBlock(worldObj, offsetPos, block, state);
|
||||||
|
|
Loading…
Reference in a new issue