From 7f1df290c837b73c2a09cd3a456bf5c1109634c3 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 28 Jan 2016 16:35:08 +0100 Subject: [PATCH] Minor Performance Opt --- .../massivecraft/massivecore/store/SenderEntity.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/massivecore/store/SenderEntity.java b/src/com/massivecraft/massivecore/store/SenderEntity.java index 4359d991..e97dfc6e 100644 --- a/src/com/massivecraft/massivecore/store/SenderEntity.java +++ b/src/com/massivecraft/massivecore/store/SenderEntity.java @@ -66,10 +66,14 @@ public abstract class SenderEntity> extends Entity 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; } // -------------------------------------------- //