Easy Villagers

Easy Villagers

13M Downloads

[1.21] Crash when rendering trader block tooltip

JaisDK opened this issue ยท 5 comments

commented

Bug description

The trader block creates a VillagerTileentity with a null level which in turn creates a EasyVillagerEntity again with a null level. Level is not nullable on LivingEntity and it makes other mods crash.

Minecraft version

1.21

Mod version

1.21-1.1.15

Mod loader and version

NeoForge: 21.0.98-beta

Steps to reproduce

Install AE2, Adorned (or another curios port) and Easy Villagers
put a trader block into the ae2 system and search

Expected behavior

No response

Log files

https://mclo.gs/zRv2ZEb

Screenshots

No response

commented

I am not able to reproduce this without curios. I'm pretty sure its an issue with them, as their mixins cause the crash.

commented

I know, that's what I said it makes other mods crash in this case Adorned because you create a LivingEntity without a level and Adorned has an event handler for when entities are created that checks if the level is client side. The error is in your mod as level is not nullable on LivingEntity.

commented

It doesn't happen with adorned anymore because I put in a null check

commented

image
I just checked it again and it does not seem to happen with https://modrinth.com/mod/curios-continuation

commented

I just checked again and it also doesn't seem to be happening with https://www.curseforge.com/minecraft/mc-mods/adorned aswell in the latest NeoForge version.
image