don't register biomes here

Dieser Commit ist enthalten in:
Jesse Boyd 2019-07-18 20:22:59 +10:00
Ursprung 4ed3fe724e
Commit be9430a92f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
3 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -936,7 +936,7 @@ public class HeightMapMCAGenerator extends MCAWriter implements StreamChange, Dr
public BiomeType getBiomeType(int x, int z) throws FaweException.FaweChunkLoadException { public BiomeType getBiomeType(int x, int z) throws FaweException.FaweChunkLoadException {
int index = z * getWidth() + x; int index = z * getWidth() + x;
if (index < 0 || index >= getArea()) index = Math.floorMod(index, getArea()); if (index < 0 || index >= getArea()) index = Math.floorMod(index, getArea());
return BiomeTypes.register(biomes.getByte(index)); return BiomeTypes.get(biomes.getByte(index));
} }
@Override @Override

Datei anzeigen

@ -25,11 +25,11 @@ public class MutableBiomeChange implements Change {
@Override @Override
public void undo(UndoContext context) throws WorldEditException { public void undo(UndoContext context) throws WorldEditException {
context.getExtent().setBiome(mutable, BiomeTypes.register(from)); context.getExtent().setBiome(mutable, BiomeTypes.get(from));
} }
@Override @Override
public void redo(UndoContext context) throws WorldEditException { public void redo(UndoContext context) throws WorldEditException {
context.getExtent().setBiome(mutable, BiomeTypes.register(to)); context.getExtent().setBiome(mutable, BiomeTypes.get(to));
} }
} }

Datei anzeigen

@ -120,7 +120,7 @@ public class MemoryOptimizedClipboard extends FaweClipboard {
if (!hasBiomes()) { if (!hasBiomes()) {
return null; return null;
} }
return BiomeTypes.register(biomes[index]); return BiomeTypes.get(biomes[index]);
} }
@Override @Override