mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-30 14:03:21 +01:00
Fix the checker
This commit is contained in:
parent
00ee643c62
commit
138d0a6a35
@ -37,7 +37,7 @@ public class WorldGuardBuilding implements Listener {
|
|||||||
ApplicableRegionSet regions = getApplicableRegions(event.getSign().getBlock().getLocation());
|
ApplicableRegionSet regions = getApplicableRegions(event.getSign().getBlock().getLocation());
|
||||||
|
|
||||||
if (Properties.WORLDGUARD_USE_FLAG) {
|
if (Properties.WORLDGUARD_USE_FLAG) {
|
||||||
regions.allows(DefaultFlag.ENABLE_SHOP);
|
event.allow(regions.allows(DefaultFlag.ENABLE_SHOP));
|
||||||
} else {
|
} else {
|
||||||
event.allow(regions.size() != 0);
|
event.allow(regions.size() != 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user