[1.20.1 Forge] JER does not pass an entity to villager trades which crashes Repurposed Structures
TelepathicGrunt opened this issue ยท 1 comments
A user reported the issue here to me:
TelepathicGrunt/RepurposedStructures#346
It looks like JER is passing a null entity to my getOff method I overrode from VillagerTrades.ItemListing. I needed the level from the entity to get a holderset of structures from a tag. Allowing my map trade to pick a random structure from a tag to locate. By passing in a null entity, which I can't expect, nor shield against without losing my functionality, my mod breaks as a result. Can an entity be passed in please? Could be a dummy villager if needed as long as it has a level ideally