Check for null creature types. Closes #83

This commit is contained in:
Eric Stokes 2011-08-29 17:03:59 -06:00
parent a0667d49b8
commit 751ed5a8e8

View File

@ -1,6 +1,7 @@
package com.onarandombox.MultiverseCore.listeners;
import java.util.List;
import java.util.logging.Level;
import org.bukkit.ChatColor;
import org.bukkit.World;
@ -112,6 +113,14 @@ public class MVEntityListener extends EntityListener {
MVWorld mvworld = this.worldManager.getMVWorld(world.getName());
/**
* Handle people with non-standard animals: ie a patched craftbukkit.
*/
if(creature == null) {
this.plugin.log(Level.FINER, "Found a null typed creature.");
return;
}
/**
* Animal Handling
*/