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

This commit is contained in:
Warrior
2025-06-06 21:51:42 -04:00
committed by GitHub
parent 7ebc94c2a6
commit e87320d5f2
@@ -86,6 +86,11 @@ public class BlockStateListPopulator extends DummyGeneratorAccess {
return this.world.getMinecraftWorld();
}
@Override
public ServerLevel getLevel() {
return this.getMinecraftWorld();
}
public void refreshTiles() {
for (CraftBlockState snapshot : this.blocks.values()) {
if (snapshot instanceof CraftBlockEntityState) {