Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Fixed fatal crash at world generation.
Dieser Commit ist enthalten in:
Ursprung
40e0962735
Commit
6ef9500410
@ -29,7 +29,7 @@ public abstract class WorldGenerator {
|
|||||||
protected void setTypeAndData(BlockChangeDelegate world, int i, int j, int k, int l, int i1) {
|
protected void setTypeAndData(BlockChangeDelegate world, int i, int j, int k, int l, int i1) {
|
||||||
if (this.a) {
|
if (this.a) {
|
||||||
world.setTypeIdAndData(i, j, k, l, i1);
|
world.setTypeIdAndData(i, j, k, l, i1);
|
||||||
} else if (world instanceof World && ((World)world).getChunkAtWorldCoords(i >> 4, k >> 4).seenByPlayer) {
|
} else if (world instanceof World && ((World)world).getChunkAtWorldCoords(i, k).seenByPlayer) { // CraftBukkit - remove in next update
|
||||||
if (world.setRawTypeIdAndData(i, j, k, l, i1)) {
|
if (world.setRawTypeIdAndData(i, j, k, l, i1)) {
|
||||||
((World)world).notify(i, j, k);
|
((World)world).notify(i, j, k);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren