GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

[Question] Can Mining Hammer accept Hammering Enchant?

MrKono opened this issue ยท 1 comments

commented

Version 2.1.4-beta
Dose Mining Hammer accept Hammering Enchant?

By using enchantment table, Mining Hammer can accept Hammering Enchant. (Fig 1)
By using Anvil and Enchanted book or using /enchant command, Mining Hammer cannot accept Hammering Enchant. (Fig 2)
What is this difference?
Fig1
Fig2

commented

This looks to have been an oversight. There was logic in the canApply() function to only allow it to be applied to pickaxes, but the canApplyAtEnchantingTable() function was not overridden. That allowed the behavior you saw, because when enchanting at a table canApply() is not called but rather canApplyAtEnchantingTable().