Fixed NPE in lightning fire event.

This commit is contained in:
sk89q 2011-04-22 03:13:47 -07:00
parent a042ee1e26
commit 8681752ee2

View File

@ -22,8 +22,8 @@ public class EntityWeatherStorm extends EntityWeather {
super(world); super(world);
// CraftBukkit start // CraftBukkit start
CraftWorld cworld = ((WorldServer) world).getWorld(); cworld = ((WorldServer) world).getWorld();
CraftServer server = ((WorldServer) world).getServer(); server = ((WorldServer) world).getServer();
// CraftBukkit end // CraftBukkit end
this.setPositionRotation(d0, d1, d2, 0.0F, 0.0F); this.setPositionRotation(d0, d1, d2, 0.0F, 0.0F);