From 36857a50642129a7e6e425d6c48fe0032b9e0cc9 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 28 Dec 2021 23:02:48 +0000 Subject: [PATCH] Fix #1490 --- .../core/queue/implementation/blocks/CharSetBlocks.java | 1 - .../main/java/com/sk89q/worldedit/command/BiomeCommands.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java index df8bde411..a8b3ccf30 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java @@ -97,7 +97,6 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet { @Override public boolean setBiome(int x, int y, int z, BiomeType biome) { updateSectionIndexRange(y >> 4); - y -= minSectionPosition << 4; int layer = (y >> 4) - minSectionPosition; if (biomes == null) { biomes = new BiomeType[sectionCount][]; diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java index d0c338b52..e9a97ab68 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java @@ -193,7 +193,7 @@ public class BiomeCommands { player.print(Caption.of( "worldedit.setbiome.changed", - TextComponent.of(visitor.getAffected()) + TextComponent.of(visitor.getAffected() / (editSession.getMaxY() - editSession.getMinY())) )); }