Reduce online evaluation by 20 % in Faction#isExplosionAllowed()
This commit is contained in:
parent
8a4f99065d
commit
b2c7d0b7b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user