From b15e2a1c0750f612904f71c190cf31d7737ddc3e Mon Sep 17 00:00:00 2001 From: Outspending Date: Thu, 28 Dec 2023 22:07:15 -0700 Subject: [PATCH] Update BiomeSetter.java --- src/main/java/me/outspending/biomesapi/BiomeSetter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/outspending/biomesapi/BiomeSetter.java b/src/main/java/me/outspending/biomesapi/BiomeSetter.java index a163fa6..d4b8458 100644 --- a/src/main/java/me/outspending/biomesapi/BiomeSetter.java +++ b/src/main/java/me/outspending/biomesapi/BiomeSetter.java @@ -270,11 +270,10 @@ public static void setRegionBiome( @NotNull CustomBiome customBiome, boolean updateBiome ) { - NamespacedKey key = customBiome.toNamespacedKey(); PointRange3D range = PointRange3D.of(from, to); - Optional nms = NMSHandler.getNMS(); - nms.ifPresent(n -> n.updateBiome(range.getMinLocation(world), range.getMaxLocation(world), key.getNamespace(), key.getKey())); + + nms.ifPresent(n -> n.updateBiome(range.getMinLocation(world), range.getMaxLocation(world), customBiome.toNamespacedKey())); if (updateBiome) { BiomeUpdater.updateChunks(from, to);