Merge pull request #49 from FrankHeijden/fix/1.18-recipies-cleanup
Fix recipy cleanup on 1.18
This commit is contained in:
commit
1029dfb4f6
2 changed files with 6 additions and 1 deletions
|
|
@ -52,6 +52,11 @@ public class RCraftingManager {
|
|||
Collection<Map> list = (Collection<Map>) recipes.values();
|
||||
list.forEach(map -> MapUtils.removeKeys(map, predicate));
|
||||
}
|
||||
|
||||
if (MinecraftReflectionVersion.MINOR >= 18) {
|
||||
Map byName = reflection.get(craftingManager, "d");
|
||||
MapUtils.removeKeys(byName, predicate);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class RMinecraftKey {
|
|||
} else if (MinecraftReflectionVersion.MINOR == 17) {
|
||||
return reflection.invoke(instance, "getNamespace");
|
||||
} else if (MinecraftReflectionVersion.MINOR >= 18) {
|
||||
return reflection.invoke(instance, "a");
|
||||
return reflection.invoke(instance, "b");
|
||||
}
|
||||
return reflection.get(instance, "namespace");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue