Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Fixed random NPE on startup
Dieser Commit ist enthalten in:
Ursprung
ca765c3512
Commit
4a9c761707
@ -75,10 +75,12 @@ public class WorldServer extends World {
|
|||||||
|
|
||||||
if (block != null) {
|
if (block != null) {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
BlockPhysicsEvent event = new BlockPhysicsEvent(Event.Type.BLOCK_PHYSICS, world.getBlockAt(i1, j1, k1), l1);
|
if (world != null) {
|
||||||
server.getPluginManager().callEvent(event);
|
BlockPhysicsEvent event = new BlockPhysicsEvent(Event.Type.BLOCK_PHYSICS, world.getBlockAt(i1, j1, k1), l1);
|
||||||
if (event.isCancelled()) {
|
server.getPluginManager().callEvent(event);
|
||||||
return;
|
if (event.isCancelled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// CraftBukkit stop
|
// CraftBukkit stop
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren