Closed LTCatt closed 1 year ago
Well I would suggest that to the author of that mod. Using a Mixin to patch another mod is not a good practice. I am all for adding support, don't get me wrong.
Edit: I believe you posted on the wrong repo based on the wording.
oh sorry it's my fault...
https://github.com/AHilyard/MerchantMarkers/blob/1.16.5/src/main/java/com/anthonyhilyard/merchantmarkers/render/Markers.java
At line 150:
if (entity instanceof AbstractVillagerEntity)
If you detect
IMerchant
instead ofAbstractVillagerEntity
, this mod can support merchants from more mods. For example, the Goblin Merchant, whose goblin entity does not inheritAbstractVillagerEntity
because it does not haveAge
, but goblin implementsIMerchant
.In fact, after I modified this code with mixin, the whole mod worked quite well...