mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
Don't do physics updates in world generation. Fixes BUKKIT-3747
This commit is contained in:
parent
40e6308718
commit
708b0e6ae1
1 changed files with 7 additions and 1 deletions
|
@ -30,7 +30,13 @@ public abstract class WorldGenerator {
|
|||
if (this.a) {
|
||||
world.setTypeIdAndData(i, j, k, l, i1);
|
||||
} else {
|
||||
world.setTypeIdAndData(i, j, k, l, i1);
|
||||
// CraftBukkit start - Layering violation :(
|
||||
if (world instanceof World) {
|
||||
((World) world).setTypeIdAndData(i, j, k, l, i1, 2);
|
||||
} else {
|
||||
world.setRawTypeIdAndData(i, j, k, l, i1);
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue