From 70cc56c7b6588baad35d7349b01b68708fcefde9 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 21 Oct 2024 02:41:37 -0500 Subject: [PATCH] chore: opt --- resources/tomato-plant/interact.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/tomato-plant/interact.js b/resources/tomato-plant/interact.js index 2f1f403..e225525 100644 --- a/resources/tomato-plant/interact.js +++ b/resources/tomato-plant/interact.js @@ -8,9 +8,10 @@ export default function*({ecs, subject}) { Interactive.interacting = false; const specs = []; + const json = ecs.readJson('/resources/tomato/tomato.entity.json'); for (let i = 0; i < 10; ++i) { specs.push({ - ...ecs.readJson('/resources/tomato/tomato.entity.json'), + ...json, Position: {x: Position.x, y: Position.y}, }); }