invert animalspawn perm if its not globally defined. fix #63

This commit is contained in:
Flemmli97 2021-06-21 13:56:31 +02:00
parent 529bcfe7f1
commit 61f459dd7a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Flan 1.5.1
======================
- Invert ANIMALSPAWN in global perms if its not defined. fix animals not spawning outside claims
Flan 1.5.0 Flan 1.5.0
====================== ======================
- Fix some items checking for wrong position and thus are able to interact in claims - Fix some items checking for wrong position and thus are able to interact in claims

View File

@ -28,6 +28,6 @@ public class GlobalClaim implements IPermissionContainer {
player.sendMessage(PermHelper.simpleColoredText(ConfigHandler.lang.noPermissionSimple, Formatting.DARK_RED), true); player.sendMessage(PermHelper.simpleColoredText(ConfigHandler.lang.noPermissionSimple, Formatting.DARK_RED), true);
return false; return false;
} }
return perm != PermissionRegistry.MOBSPAWN; return perm != PermissionRegistry.MOBSPAWN && perm != PermissionRegistry.ANIMALSPAWN;
} }
} }