mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 02:57:42 +01:00
Fixed denyspawn flag
This commit is contained in:
parent
353ce7e825
commit
20f91b5258
@ -405,7 +405,7 @@ public void onCreatureSpawn(CreatureSpawnEvent event) {
|
|||||||
|
|
||||||
Boolean flagValue = mgr.getApplicableRegions(pt).getStringFlag(FlagType.DENY_SPAWN, true).getValue("").contains(creaName);
|
Boolean flagValue = mgr.getApplicableRegions(pt).getStringFlag(FlagType.DENY_SPAWN, true).getValue("").contains(creaName);
|
||||||
if (flagValue != null) {
|
if (flagValue != null) {
|
||||||
if (!flagValue) {
|
if (flagValue) {
|
||||||
cancelEvent = true;
|
cancelEvent = true;
|
||||||
} else {
|
} else {
|
||||||
cancelEvent = false;
|
cancelEvent = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user