From 1e588900bb1ad7b337f47dc27992d9f8dd861306 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 28 Jul 2024 18:51:38 -0500 Subject: [PATCH] fix: no templates for now --- public/assets/tomato-plant/interact.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/public/assets/tomato-plant/interact.js b/public/assets/tomato-plant/interact.js index 26c4ca7..9ea48ad 100644 --- a/public/assets/tomato-plant/interact.js +++ b/public/assets/tomato-plant/interact.js @@ -17,15 +17,15 @@ for (let i = 0; i < 10; ++i) { ], }, ], - collisionStartScript: ` - if (other.Inventory) { - other.Inventory.give({ - qty: 1, - source: '/assets/tomato/tomato.json', - }) - ecs.destroy(entity.id) - } - `, + collisionStartScript: [ + 'if (other.Inventory) {', + ' other.Inventory.give({', + ' qty: 1,', + " source: '/assets/tomato/tomato.json',", + ' })', + ' ecs.destroy(entity.id)', + '}', + ].join('\n'), }, Forces: {}, Magnetic: {},