From e3cd13aaa7f6958a24a6aaa707fd781b6b4facb7 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Thu, 18 Jun 2020 10:26:06 -0400 Subject: [PATCH] Spawn entities in the center if the y-axis is unlocked --- macrovision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macrovision.js b/macrovision.js index e527a8ff..f8c1827b 100644 --- a/macrovision.js +++ b/macrovision.js @@ -2793,7 +2793,7 @@ function prepareEntities() { button.addEventListener("click", e => { const newEntity = entityList[select.value].constructor() - displayEntity(newEntity, newEntity.defaultView, config.x, config.y, true, true); + displayEntity(newEntity, newEntity.defaultView, config.x, config.y + (config.lockYAxis ? 0 : config.height.toNumber("meters")/2), true, true); }); const categoryOption = document.createElement("option");