Fix red sand/regular sand mix

This commit is contained in:
EOT3000 2019-10-09 17:07:56 -04:00
parent d99c285676
commit c556fa94ea

View file

@ -99,12 +99,14 @@ public class Remapper {
for (Map.Entry<Integer, ? extends JavaItem> javaItemEntry : javaItems.entrySet()) { for (Map.Entry<Integer, ? extends JavaItem> javaItemEntry : javaItems.entrySet()) {
if (identifier.equalsIgnoreCase(javaItemEntry.getValue().getIdentifier())) { if (identifier.equalsIgnoreCase(javaItemEntry.getValue().getIdentifier())) {
if(!(javaToBedrock.containsKey(javaItemEntry.getValue()) && javaToBedrock.containsKey(javaItemEntry.getValue()))) {
bedrockToJava.put(bedrockItemEntry.getValue(), javaItemEntry.getValue()); bedrockToJava.put(bedrockItemEntry.getValue(), javaItemEntry.getValue());
javaToBedrock.put(javaItemEntry.getValue(), bedrockItemEntry.getValue()); javaToBedrock.put(javaItemEntry.getValue(), bedrockItemEntry.getValue());
} }
} }
} }
} }
}
public JavaItem convertToJava(ItemData item) { public JavaItem convertToJava(ItemData item) {
for (Map.Entry<String, BedrockItem> bedrockItem : Toolbox.BEDROCK_ITEMS.entrySet()) { for (Map.Entry<String, BedrockItem> bedrockItem : Toolbox.BEDROCK_ITEMS.entrySet()) {