mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
update with lastEditedCheck
This commit is contained in:
commit
70bbac5c83
1 changed files with 3 additions and 0 deletions
|
@ -338,6 +338,9 @@ QUuid EntityScriptingInterface::cloneEntity(QUuid entityIDToClone) {
|
|||
if (cloneAvatarEntity) {
|
||||
return addEntity(properties, true);
|
||||
} else {
|
||||
// setLastEdited timestamp to 0 to ensure this entity gets updated with the properties
|
||||
// from the server-created entity, don't change this unless you know what you are doing
|
||||
properties.setLastEdited(0);
|
||||
bool success = addLocalEntityCopy(properties, newEntityID);
|
||||
if (success) {
|
||||
getEntityPacketSender()->queueCloneEntityMessage(entityIDToClone, newEntityID);
|
||||
|
|
Loading…
Reference in a new issue