mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-4131: Fix typo affecting setting BlockData
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a5a9d41dc6
commit
969eecd95e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue