mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-28 20:19:00 +01:00
Updated MobType to CreateType
This commit is contained in:
parent
45a7653dcd
commit
eda7db7aca
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user