Fix recipy cleanup on 1.18
This commit is contained in:
parent
3553dd8bd4
commit
5b5b244a38
1 changed files with 5 additions and 0 deletions
|
|
@ -52,6 +52,11 @@ public class RCraftingManager {
|
||||||
Collection<Map> list = (Collection<Map>) recipes.values();
|
Collection<Map> list = (Collection<Map>) recipes.values();
|
||||||
list.forEach(map -> MapUtils.removeKeys(map, predicate));
|
list.forEach(map -> MapUtils.removeKeys(map, predicate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (MinecraftReflectionVersion.MINOR >= 18) {
|
||||||
|
Map byName = reflection.get(craftingManager, "d");
|
||||||
|
MapUtils.removeKeys(byName, predicate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue