Did some work on the Inversion Pillar
This commit is contained in:
parent
24b4c4b8d1
commit
aad1b541f8
2 changed files with 84 additions and 20 deletions
|
@ -61,14 +61,16 @@ public class InversionPillarHandler
|
|||
|
||||
if (posList != null)
|
||||
{
|
||||
posList.remove(pos);
|
||||
|
||||
List<BlockPos> newList = new ArrayList<BlockPos>();
|
||||
|
||||
Iterator<BlockPos> itr = posList.iterator();
|
||||
while (itr.hasNext())
|
||||
{
|
||||
BlockPos newPos = itr.next();
|
||||
if (newPos.equals(pos))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (world.getTileEntity(newPos) instanceof TileInversionPillar) //Make this check... more efficient somehow.
|
||||
{
|
||||
newList.add(newPos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue