mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
plugin: Ensure InstanceMap deletes existing entries before inserting
This commit is contained in:
@@ -79,6 +79,9 @@ function InstanceMap:__fmtDebug(output)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function InstanceMap:insert(id, instance)
|
function InstanceMap:insert(id, instance)
|
||||||
|
self:removeId(id)
|
||||||
|
self:removeInstance(instance)
|
||||||
|
|
||||||
self.fromIds[id] = instance
|
self.fromIds[id] = instance
|
||||||
self.fromInstances[instance] = id
|
self.fromInstances[instance] = id
|
||||||
self:__connectSignals(instance)
|
self:__connectSignals(instance)
|
||||||
|
|||||||
Reference in New Issue
Block a user