From be9430a92f3a0f544a78b890cb54bc947cdbb681 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 18 Jul 2019 20:22:59 +1000 Subject: [PATCH] don't register biomes here --- .../com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java | 2 +- .../com/boydti/fawe/object/change/MutableBiomeChange.java | 4 ++-- .../fawe/object/clipboard/MemoryOptimizedClipboard.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java b/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java index 3c03918ee..377c7a7b5 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java @@ -936,7 +936,7 @@ public class HeightMapMCAGenerator extends MCAWriter implements StreamChange, Dr public BiomeType getBiomeType(int x, int z) throws FaweException.FaweChunkLoadException { int index = z * getWidth() + x; if (index < 0 || index >= getArea()) index = Math.floorMod(index, getArea()); - return BiomeTypes.register(biomes.getByte(index)); + return BiomeTypes.get(biomes.getByte(index)); } @Override diff --git a/worldedit-core/src/main/java/com/boydti/fawe/object/change/MutableBiomeChange.java b/worldedit-core/src/main/java/com/boydti/fawe/object/change/MutableBiomeChange.java index 277161bba..db2b83226 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/object/change/MutableBiomeChange.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/object/change/MutableBiomeChange.java @@ -25,11 +25,11 @@ public class MutableBiomeChange implements Change { @Override public void undo(UndoContext context) throws WorldEditException { - context.getExtent().setBiome(mutable, BiomeTypes.register(from)); + context.getExtent().setBiome(mutable, BiomeTypes.get(from)); } @Override public void redo(UndoContext context) throws WorldEditException { - context.getExtent().setBiome(mutable, BiomeTypes.register(to)); + context.getExtent().setBiome(mutable, BiomeTypes.get(to)); } } diff --git a/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java b/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java index bfe975708..c3f532262 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/MemoryOptimizedClipboard.java @@ -120,7 +120,7 @@ public class MemoryOptimizedClipboard extends FaweClipboard { if (!hasBiomes()) { return null; } - return BiomeTypes.register(biomes[index]); + return BiomeTypes.get(biomes[index]); } @Override