Minor Performance Opt

This commit is contained in:
Olof Larsson 2016-01-28 16:35:08 +01:00
parent 337031fc11
commit 7f1df290c8

View File

@ -66,10 +66,14 @@ public abstract class SenderEntity<E extends SenderEntity<E>> extends Entity<E>
public boolean convertGet(Boolean wrapper, String permission)
{
// Permission requirement
if ( ! PermUtil.has(this.getSender(), permission)) return false;
// Create
boolean ret = super.convertGet(wrapper);
return super.convertGet(wrapper);
// Permission Requirement
if (ret && ! PermUtil.has(this.getSender(), permission)) return false;
// Return
return ret;
}
// -------------------------------------------- //