mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-22 00:04:59 +01:00
SPIGOT-6759: Chest#getInventory() no longer returns double chest inventories
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
f9c1420daf
commit
02cdd23003
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class CraftBlockState implements BlockState {
|
||||||
|
|
||||||
protected final boolean isWorldGeneration() {
|
protected final boolean isWorldGeneration() {
|
||||||
GeneratorAccess generatorAccess = this.getWorldHandle();
|
GeneratorAccess generatorAccess = this.getWorldHandle();
|
||||||
return generatorAccess != null && !(generatorAccess instanceof World);
|
return generatorAccess != null && !(generatorAccess instanceof net.minecraft.world.level.World);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final void ensureNoWorldGeneration() {
|
protected final void ensureNoWorldGeneration() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue