Updated MobType to CreateType

This commit is contained in:
DarkLiKally 2011-03-08 08:54:33 +01:00
parent 45a7653dcd
commit eda7db7aca

View File

@ -320,7 +320,8 @@ public void onCreatureSpawn(CreatureSpawnEvent event) {
WorldGuardConfiguration cfg = plugin.getWgConfiguration();
WorldGuardWorldConfiguration wcfg = cfg.getWorldConfig(event.getEntity().getWorld().getName());
CreatureType creaType = (CreatureType) CreatureType.valueOf(event.getMobType().toString());
//CreatureType creaType = (CreatureType) CreatureType.valueOf(event.getMobType().toString());
CreatureType creaType = event.getCreatureType();
String creaName = "";
Boolean cancelEvent = false;