diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-10-27 22:03:21 +0100 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-10-27 22:03:21 +0100 |
commit | cf34c6c305bcfb8c0f7cbde4dea08d00420a6982 (patch) | |
tree | 481de33acc7003651cf23e00baae0de8ac5374d2 /src | |
parent | e33fce94b5b8a7082b6a32ae3e420262d8a7126f (diff) | |
download | bukkit-cf34c6c305bcfb8c0f7cbde4dea08d00420a6982.tar bukkit-cf34c6c305bcfb8c0f7cbde4dea08d00420a6982.tar.gz bukkit-cf34c6c305bcfb8c0f7cbde4dea08d00420a6982.tar.lz bukkit-cf34c6c305bcfb8c0f7cbde4dea08d00420a6982.tar.xz bukkit-cf34c6c305bcfb8c0f7cbde4dea08d00420a6982.zip |
Fixed using the wrong type of Map for storing perm attachment values
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/permissions/PermissionAttachment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/permissions/PermissionAttachment.java b/src/main/java/org/bukkit/permissions/PermissionAttachment.java index 92ba9904..d5cfeb20 100644 --- a/src/main/java/org/bukkit/permissions/PermissionAttachment.java +++ b/src/main/java/org/bukkit/permissions/PermissionAttachment.java @@ -1,8 +1,8 @@ package org.bukkit.permissions; +import java.util.LinkedHashMap; import java.util.Map; -import java.util.TreeMap; import org.bukkit.plugin.Plugin; /** @@ -10,7 +10,7 @@ import org.bukkit.plugin.Plugin; */ public class PermissionAttachment { private PermissionRemovedExecutor removed; - private final TreeMap<String, Boolean> permissions = new TreeMap<String, Boolean>(); + private final Map<String, Boolean> permissions = new LinkedHashMap<String, Boolean>(); private final Permissible permissible; private final Plugin plugin; @@ -69,7 +69,7 @@ public class PermissionAttachment { * @return Copy of all permissions and values expressed by this attachment */ public Map<String, Boolean> getPermissions() { - return (Map<String, Boolean>)permissions.clone(); + return new LinkedHashMap<String, Boolean>(permissions); } /** |