From c556fa94ea6014b9beffb1a64eb176fe24a4b82a Mon Sep 17 00:00:00 2001 From: EOT3000 <43685885+EOT3000@users.noreply.github.com> Date: Wed, 9 Oct 2019 17:07:56 -0400 Subject: [PATCH] Fix red sand/regular sand mix --- .../main/java/org/geysermc/connector/utils/Remapper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/utils/Remapper.java b/connector/src/main/java/org/geysermc/connector/utils/Remapper.java index bccc4fd4..c1dc7723 100644 --- a/connector/src/main/java/org/geysermc/connector/utils/Remapper.java +++ b/connector/src/main/java/org/geysermc/connector/utils/Remapper.java @@ -99,8 +99,10 @@ public class Remapper { for (Map.Entry javaItemEntry : javaItems.entrySet()) { if (identifier.equalsIgnoreCase(javaItemEntry.getValue().getIdentifier())) { - bedrockToJava.put(bedrockItemEntry.getValue(), javaItemEntry.getValue()); - javaToBedrock.put(javaItemEntry.getValue(), bedrockItemEntry.getValue()); + if(!(javaToBedrock.containsKey(javaItemEntry.getValue()) && javaToBedrock.containsKey(javaItemEntry.getValue()))) { + bedrockToJava.put(bedrockItemEntry.getValue(), javaItemEntry.getValue()); + javaToBedrock.put(javaItemEntry.getValue(), bedrockItemEntry.getValue()); + } } } }