if(tile instanceof TilePool) {
TilePool pool = (TilePool) tile;
if(pool.getCurrentMana() < cost)
closeNow = true;
else if(!worldObj.isRemote)
pool.recieveMana(-cost);
}
}
}
private boolean check2DArray(int[][] positions, Block block, int meta, Function<int[], int[]>... converters) {