SPIGOT-6759: Chest#getInventory() no longer returns double chest inventories

By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
CraftBukkit/Spigot 2021-10-16 18:48:21 +11:00
parent f9c1420daf
commit 02cdd23003

View file

@ -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() {