mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 11:20:32 +01:00
Check for null creature types. Closes #83
This commit is contained in:
parent
a0667d49b8
commit
751ed5a8e8
@ -1,6 +1,7 @@
|
|||||||
package com.onarandombox.MultiverseCore.listeners;
|
package com.onarandombox.MultiverseCore.listeners;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -111,7 +112,15 @@ public class MVEntityListener extends EntityListener {
|
|||||||
CreatureType creature = event.getCreatureType();
|
CreatureType creature = event.getCreatureType();
|
||||||
|
|
||||||
MVWorld mvworld = this.worldManager.getMVWorld(world.getName());
|
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
|
* Animal Handling
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user