Archiviert
13
0

Fixed random NPE on startup

Dieser Commit ist enthalten in:
Dinnerbone 2011-01-04 21:13:59 +00:00
Ursprung ca765c3512
Commit 4a9c761707

Datei anzeigen

@ -75,10 +75,12 @@ public class WorldServer extends World {
if (block != null) {
// CraftBukkit start
BlockPhysicsEvent event = new BlockPhysicsEvent(Event.Type.BLOCK_PHYSICS, world.getBlockAt(i1, j1, k1), l1);
server.getPluginManager().callEvent(event);
if (event.isCancelled()) {
return;
if (world != null) {
BlockPhysicsEvent event = new BlockPhysicsEvent(Event.Type.BLOCK_PHYSICS, world.getBlockAt(i1, j1, k1), l1);
server.getPluginManager().callEvent(event);
if (event.isCancelled()) {
return;
}
}
// CraftBukkit stop