Fix recipy cleanup on 1.18

This commit is contained in:
Frank van der Heijden 2022-04-21 17:34:59 +02:00
parent 3553dd8bd4
commit 5b5b244a38
No known key found for this signature in database
GPG key ID: 4BC514A52A496F84

View file

@ -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);
}
}
}
}