Bug fix: don't make dim field final, otherwise it is compiled as a constant in switch statements!

master
Captain Chaos 2022-08-23 12:28:05 +02:00
parent 2d841d7c3c
commit af3412985a
1 changed files with 1 additions and 1 deletions

View File

@ -2006,7 +2006,7 @@ public class Dimension extends InstanceKeeper implements TileProvider, Serializa
private final World2 world;
private final long seed;
@Deprecated
private final int dim = 0;
private int dim = 0;
final Map<Point, Tile> tiles = new HashMap<>();
private final TileFactory tileFactory;
private int lowestX = Integer.MAX_VALUE, highestX = Integer.MIN_VALUE, lowestY = Integer.MAX_VALUE, highestY = Integer.MIN_VALUE;