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

This commit is contained in:
blablubbabc 2021-10-16 18:48:21 +11:00 committed by md_5
parent 11c9299fbb
commit fee3152be1
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

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