From 7e87cb38e1e37e086ddb345c8e58c4947445416a Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Tue, 9 Jan 2018 11:10:23 +0300 Subject: [PATCH] adjusted code to PR comments --- scripts/system/marketplaces/marketplaces.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/system/marketplaces/marketplaces.js b/scripts/system/marketplaces/marketplaces.js index 8116b73c57..8819960354 100644 --- a/scripts/system/marketplaces/marketplaces.js +++ b/scripts/system/marketplaces/marketplaces.js @@ -343,13 +343,13 @@ var selectionDisplay = null; // for gridTool.js to ignore Entities.editEntity(pastedEntityIDs[0], offsets); } - var firstEntityProps = Entities.getEntityProperties(pastedEntityIDs[0], ["position"]); - var rezzedPos = firstEntityProps.position; + var rezPosition = Entities.getEntityProperties(pastedEntityIDs[0], "position").position; Audio.playSound(REZZING_SOUND, { volume: 1.0, - position: rezzedPos - }) + position: rezPosition, + localOnly: true + }); } else { Window.notifyEditError("Can't import entities: entities would be out of bounds.");