Railcraft

Railcraft

34M Downloads

Code suggestion: make smack enchantment and destruction enchantment check for IToolCrowbar instead of ItemCrowbar

Trinsdar opened this issue ยท 0 comments

commented

Is your feature request related to a problem? Please describe.
Not exactly, I would just like to be able to use those enchantments on my mod's crowbar(it's a remake of gt4)

Describe the solution you'd like
What's in the title if possible

Describe alternatives you've considered
Not aware of any alternatives. the only other alternative for my mod is a bit messy, cause then I'd have to extend ItemToolCrowbar, and therefore have two versions of my crowbar item class

Additional context
https://github.com/Railcraft/Railcraft/blob/mc-1.12.2/src/main/java/mods/railcraft/common/items/enchantment/EnchantmentSmack.java#L42
https://github.com/Railcraft/Railcraft/blob/mc-1.12.2/src/main/java/mods/railcraft/common/items/enchantment/EnchantmentDestruction.java#L40