mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix light multiple creations
This commit is contained in:
parent
5fadcbe7d9
commit
66f954142a
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@
|
|||
if (!didEntityExist(this.lightID)) {
|
||||
// Light now has an ID, so update it in userData
|
||||
this.lightID = Entities.identifyEntity(this.lightID);
|
||||
userData.lightID = this.lightID.id;
|
||||
userData.lightID = this.lightID;
|
||||
updateUserData(this.entityID, userData);
|
||||
}
|
||||
return;
|
||||
|
@ -113,7 +113,7 @@
|
|||
print("Created new light entity");
|
||||
|
||||
// Update user data with new ID
|
||||
userData.lightID = this.lightID.id;
|
||||
userData.lightID = this.lightID;
|
||||
updateUserData(this.entityID, userData);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue