Started by
manoscraft
on
Topic category: Help with Minecraft modding (Java Edition)
So, i have an entity with tick update procedure that increases a value by 1 after 100 ticks:
But when i update this value in GUI textfield via procedure:
After a few seconds while GUI is opened the game simple crashes.
Here some of the log:
[16:35:15] [Render thread/ERROR] [ne.mi.ev.EventBus/EVENTBUS]: Exception caught during firing event: Cannot invoke "net.minecraft.world.entity.Entity.getPersistentData()" because the return value of "java.util.Optional.orElse(Object)" is null
Index: 1
Listeners:
0: NORMAL
Can anyone help me?
Entity NBT is not client synced and highlighted by clear warning in procedure editor.
Use entity synced data instead of NBT for this