diff options
author | md_5 <git@md-5.net> | 2018-07-24 12:04:34 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-24 12:04:34 +1000 |
commit | ca75fead2c8217babd58b2a7e8d15d9886bf74ee (patch) | |
tree | a0a00361bedea2bddf7f0aee551bdf73ab96f1a1 /src/main/java/org | |
parent | 19ff43d9e1d50539e40c7eb6abec0fa1b67f02ac (diff) | |
download | craftbukkit-ca75fead2c8217babd58b2a7e8d15d9886bf74ee.tar craftbukkit-ca75fead2c8217babd58b2a7e8d15d9886bf74ee.tar.gz craftbukkit-ca75fead2c8217babd58b2a7e8d15d9886bf74ee.tar.lz craftbukkit-ca75fead2c8217babd58b2a7e8d15d9886bf74ee.tar.xz craftbukkit-ca75fead2c8217babd58b2a7e8d15d9886bf74ee.zip |
SPIGOT-4131: Fix typo affecting setting BlockData
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java b/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java index d68fe947..882e39be 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java +++ b/src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java @@ -138,7 +138,7 @@ public class CraftBlockData implements BlockData { @SuppressWarnings("unchecked") private static <N extends Enum<N> & INamable> N toNMS(Enum<?> bukkit, Class<N> nms) { Enum<?> converted; - BiMap<Enum<?>, Enum<?>> nmsToBukkit = classMappings.get(nms.getClass()); + BiMap<Enum<?>, Enum<?>> nmsToBukkit = classMappings.get(nms); if (nmsToBukkit != null) { converted = nmsToBukkit.inverse().get(bukkit); @@ -157,7 +157,7 @@ public class CraftBlockData implements BlockData { if (nmsToBukkit == null) { nmsToBukkit = HashBiMap.create(); - classMappings.put(nms.getClass(), nmsToBukkit); + classMappings.put(nms, nmsToBukkit); } nmsToBukkit.put(converted, bukkit); |