adjusted code to PR comments

This commit is contained in:
Alexander Ivash 2018-01-09 11:10:23 +03:00
parent 9a63fc94f0
commit 7e87cb38e1

View file

@ -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.");