#Freshly-spawned entity does not register interact on server-side, but pre-existing entities do?

4 messages · Page 1 of 1 (latest)

toxic spoke
#

I have a "seat" entity that is being managed by a block entity. The block entity spawns the seat entity and the seat entity despawns if the block is wrong or doesn't recognise it (to prevent duplicates from sticking around).

However, when I try to interact with the seat entity after placing the block entity, the interact only registers on the client-side, until I reload the world save (image 1).

I have verified that the entity is spawned on the server-side (image 2), so this isn't a case of a client-side or phantom entity. So what's going wrong here?
https://github.com/Lyinginbedmon/Hrrmowners/blob/main/common/src/main/java/com/lying/entity/SeatEntity.java

#

I could most probably get around this by only spawning the seat entity when necessary and mounting it in the same function as spawning it, but I'd like to know the origin of this bug before I go writing work-arounds.

warm jewel
toxic spoke