Merge pull request #12 from KiloJoel/necroTabletScanFix

tablets of necromancy now scan the full square for pedestals
This commit is contained in:
Martin Robertz authored and GitHub committed 2020-11-17 19:04:58 +01:00
commit f11fb8bad4
1 file changed
+2 -2
@@ -25,8 +25,8 @@ public class TileSummon extends TileEntity {
}
for (int radius = 1; radius < 6; radius++) {
ArrayList<TileEntity> pedestals = new ArrayList<TileEntity>();
for (int x = xCoord - radius; x < xCoord + radius; x++) {
for (int z = zCoord - radius; z < zCoord + radius; z++) {
for (int x = xCoord - radius; x <= xCoord + radius; x++) {
for (int z = zCoord - radius; z <= zCoord + radius; z++) {
TileEntity tile = worldObj.getTileEntity(x, yCoord, z);
if (tile instanceof TilePedestal && ((TilePedestal) tile).getStackInSlot(0) != null && ((TilePedestal) tile).getStackInSlot(0).getItem() instanceof ItemMobAspect) {
pedestals.add(tile);