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) public boolean convertGet(Boolean wrapper, String permission)
{ {
// Permission requirement // Create
if ( ! PermUtil.has(this.getSender(), permission)) return false; boolean ret = super.convertGet(wrapper);
return super.convertGet(wrapper); // Permission Requirement
if (ret && ! PermUtil.has(this.getSender(), permission)) return false;
// Return
return ret;
} }
// -------------------------------------------- // // -------------------------------------------- //