From 02cdd230030abed981b765b1477bbb71f49127bd Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 16 Oct 2021 18:48:21 +1100 Subject: [PATCH] SPIGOT-6759: Chest#getInventory() no longer returns double chest inventories By: blablubbabc --- .../main/java/org/bukkit/craftbukkit/block/CraftBlockState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java index d29c7bd9be..53348f9d2b 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlockState.java @@ -75,7 +75,7 @@ public class CraftBlockState implements BlockState { protected final boolean isWorldGeneration() { GeneratorAccess generatorAccess = this.getWorldHandle(); - return generatorAccess != null && !(generatorAccess instanceof World); + return generatorAccess != null && !(generatorAccess instanceof net.minecraft.world.level.World); } protected final void ensureNoWorldGeneration() {