Fix spreaders and pools not getting removed from the tile list since the map change.

This commit is contained in:
Vasco Lavos committed 2014-05-01 16:38:14 +01:00
1 parent 57fe64ca11
commit 2bd1294fe7
1 file changed
+3 -3
@@ -80,12 +80,12 @@ public final class ManaNetworkHandler implements IManaNetwork {
}
private synchronized void remove(Map<World, List<TileEntity>> map, TileEntity tile) {
int dim = tile.getWorldObj().provider.dimensionId;
World world = tile.getWorldObj();
if(!map.containsKey(dim))
if(!map.containsKey(world))
return;
List<TileEntity> tiles = map.get(dim);
List<TileEntity> tiles = map.get(world);
tiles.remove(tile);
}