mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-19 23:57:43 +01:00
Some cleanup.
This commit is contained in:
parent
837efb75d1
commit
edc94594eb
@ -321,8 +321,7 @@ public void onCreatureSpawn(CreatureSpawnEvent event) {
|
|||||||
WorldConfiguration wcfg = cfg.getWorldConfig(event.getEntity().getWorld().getName());
|
WorldConfiguration 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();
|
CreatureType creaType = event.getCreatureType();
|
||||||
String creaName = "";
|
|
||||||
Boolean cancelEvent = false;
|
Boolean cancelEvent = false;
|
||||||
|
|
||||||
if (wcfg.blockCreatureSpawn.contains(creaType)) {
|
if (wcfg.blockCreatureSpawn.contains(creaType)) {
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Michael
|
* @author Michael
|
||||||
|
* @param <T>
|
||||||
*/
|
*/
|
||||||
public abstract class RegionFlagInfo<T> {
|
public abstract class RegionFlagInfo<T> {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user