Industrial Foregoing

Industrial Foregoing

95M Downloads

[1.16] EnchantmentExtractor blocked with item only has curse

jlusuoya opened this issue ยท 0 comments

commented

113 Map<Enchantment, Integer> map = EnchantmentHelper.getEnchantments(input).entrySet().stream().filter((enchantmentPair) -> !enchantmentPair.getKey().isCurse()).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
// here will get empty map
114 if (map.size() > 0) {. // here is false
...
132 } else {
// nothing to do , the machine blocked
}
133 }