diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-09-23 23:51:57 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-09-23 23:51:57 +0100 |
commit | d722e6a9f02fbb6a4fb2beb2c67f15e3e0909d33 (patch) | |
tree | 992a3090e33196cef4bd345e3d879bec236a7a14 /Essentials | |
parent | 8e6d4b15954b0aabbead13ec7c049eb9ba9e3970 (diff) | |
download | Essentials-d722e6a9f02fbb6a4fb2beb2c67f15e3e0909d33.tar Essentials-d722e6a9f02fbb6a4fb2beb2c67f15e3e0909d33.tar.gz Essentials-d722e6a9f02fbb6a4fb2beb2c67f15e3e0909d33.tar.lz Essentials-d722e6a9f02fbb6a4fb2beb2c67f15e3e0909d33.tar.xz Essentials-d722e6a9f02fbb6a4fb2beb2c67f15e3e0909d33.zip |
Less sign checking if certain signs aren't enabled.
Diffstat (limited to 'Essentials')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java index 162457baf..9b9a69c43 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java @@ -98,9 +98,8 @@ public class SignBlockListener implements Listener return; } - for (Signs signs : Signs.values()) + for (EssentialsSign sign : ess.getSettings().enabledSigns()) { - final EssentialsSign sign = signs.getSign(); if (event.getLine(0).equalsIgnoreCase(sign.getSuccessName())) { event.setCancelled(true); @@ -137,9 +136,8 @@ public class SignBlockListener implements Listener { return; } - for (Signs signs : Signs.values()) + for (EssentialsSign sign : ess.getSettings().enabledSigns()) { - final EssentialsSign sign = signs.getSign(); if (sign.getBlocks().contains(block.getType()) && !sign.onBlockPlace(block, event.getPlayer(), ess)) { |