Extending the range of supported entity types to IMerchant
LTCatt opened this issue ยท 2 comments
At line 150: if (entity instanceof AbstractVillagerEntity)
If you detect IMerchant
instead of AbstractVillagerEntity
, this mod can support merchants from more mods. For example, the Goblin Merchant, whose goblin entity does not inherit AbstractVillagerEntity
because it does not have Age
, but goblin implements IMerchant
.
In fact, after I modified this code with mixin, the whole mod worked quite well...