Fix UOE when using generateTree with pale oak (#12616)

This commit is contained in:
Warrior
2025-06-07 03:51:42 +02:00
committed by GitHub
parent 7ebc94c2a6
commit e87320d5f2

View File

@ -86,6 +86,11 @@ public class BlockStateListPopulator extends DummyGeneratorAccess {
return this.world.getMinecraftWorld(); return this.world.getMinecraftWorld();
} }
@Override
public ServerLevel getLevel() {
return this.getMinecraftWorld();
}
public void refreshTiles() { public void refreshTiles() {
for (CraftBlockState snapshot : this.blocks.values()) { for (CraftBlockState snapshot : this.blocks.values()) {
if (snapshot instanceof CraftBlockEntityState) { if (snapshot instanceof CraftBlockEntityState) {