Reduce online evaluation by 20 % in Faction#isExplosionAllowed()

This commit is contained in:
ulumulu1510 2015-10-06 21:18:10 +02:00 committed by Olof Larsson
parent 8a4f99065d
commit b2c7d0b7b7

View File

@ -1195,6 +1195,10 @@ public class Faction extends Entity<Faction> 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);