Fix the checker

This commit is contained in:
Acrobot 2014-01-03 00:42:04 +01:00
parent 00ee643c62
commit 138d0a6a35

View File

@ -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);
} }