From b2c7d0b7b7ee1230b5f274ec70883d0e362d967d Mon Sep 17 00:00:00 2001 From: ulumulu1510 Date: Tue, 6 Oct 2015 21:18:10 +0200 Subject: [PATCH] Reduce online evaluation by 20 % in Faction#isExplosionAllowed() --- src/com/massivecraft/factions/entity/Faction.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/massivecraft/factions/entity/Faction.java b/src/com/massivecraft/factions/entity/Faction.java index 4206d1ce..8a2eeb19 100644 --- a/src/com/massivecraft/factions/entity/Faction.java +++ b/src/com/massivecraft/factions/entity/Faction.java @@ -1195,6 +1195,10 @@ public class Faction extends Entity implements EconomyParticipator { boolean explosions = this.getFlag(MFlag.getFlagExplosions()); boolean offlineexplosions = this.getFlag(MFlag.getFlagOfflineexplosions()); + + if (explosions && offlineexplosions) return true; + if ( ! explosions && ! offlineexplosions) return false; + boolean online = this.isFactionConsideredOnline(); return (online && explosions) || (!online && offlineexplosions);