Custom mob head not updating immediately
#1
When I set the owner of a mob head with SetOwner, using the function DoWithMobHeadAt, the skin of the head only changes after reconnecting to the server. Can I change this behaviour in any way?
Reply
Thanks given by:
#2
Setting the owner doesn't re-send the metadata to the client. We should add a m_IsMetadataDirty flag to entities and all the Set functions should set it; upon ticking the entity, if the flag is set, the entity should re-send its metadata to the client and reset the flag.

Come to think of it, I'm not sure if the protocol supports re-sending the entity metadata, though. It might be that the metadata is sent only with the "create entity" packet, so we'd have to effectively destroy and recreate the entity.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)