Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Possibly fixed crashes caused by tile entities under certain circumstances.
Dieser Commit ist enthalten in:
Ursprung
d0f904fc50
Commit
a9cdc36f2c
@ -1532,12 +1532,14 @@ public class World implements IBlockAccess {
|
|||||||
tileentity.z = k;
|
tileentity.z = k;
|
||||||
this.G.add(tileentity);
|
this.G.add(tileentity);
|
||||||
} else {
|
} else {
|
||||||
this.c.add(tileentity);
|
// CraftBukkit - order matters, moved down
|
||||||
|
// this.c.add(tileentity);
|
||||||
Chunk chunk = this.getChunkAt(i >> 4, k >> 4);
|
Chunk chunk = this.getChunkAt(i >> 4, k >> 4);
|
||||||
|
|
||||||
if (chunk != null) {
|
if (chunk != null) {
|
||||||
chunk.a(i & 15, j, k & 15, tileentity);
|
chunk.a(i & 15, j, k & 15, tileentity);
|
||||||
}
|
}
|
||||||
|
this.c.add(tileentity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren