forked from GeyserMC/Geyser
Fix red sand/regular sand mix
This commit is contained in:
parent
d99c285676
commit
c556fa94ea
1 changed files with 4 additions and 2 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue