Hello everyone!
There's this entity I've created that extends HangingEntity, along with its item that extends HangingEntityItem. Works pretty much like a painting would.
I'm getting this unusual behavior in which, when right-clicking to place it, the entity seems to get created on the server but not on the client. However, upon saving and reloading the world, the entity is actually right there, perfectly as intended.
At some point I came across getAddEntityPacket so I did override it with a call to NetworkHooks.getEntitySpawningPacket, but it appears to never be called and I'm not sure why. I'd even included IEntityAdditionalSpawnData to sync stuff such as the painting's facing direction to no avail.
Since the Entity's working fine when loading the world (and even when summoning directly with /summon), I'm inclined to think there's something up with the Item, but there's not that much going on there.
I've attached it below along with the entity.
--------------
Moreover, I was able to verify that addFreshEntity was indeed called on the server, and the entity's constructor is being called on both sides. Just to make sure I also checked the entity's remove method and it was not being called. (which makes sense since the entity gets saved with the world)
I'll appreciate any and all help including pointers on where to poke next for clues.
Thanks a bunch!