l3mpire / lemverse

The first-ever coworking metaverse
https://app.lemverse.com
GNU Affero General Public License v3.0
149 stars 40 forks source link

Fix relative popInConfiguration broken #145

Closed alimtunc closed 1 year ago

alimtunc commented 1 year ago

Making shallow copy of popInConfiguration to avoid reference of const config. Actually, when we use position: relative on popInConfiguration. The config.x and config.y will be increment exponentially due to this copy of reference instead of shallow copy, because each time we reuse const configit will save the same value of previous iteration and increment it to the user position.

Donorhan commented 1 year ago

Thank you!