From 78d49f8abcffc5768921c1c9f1c88f6a6377975d Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 31 Dec 2022 11:09:03 +0100 Subject: [PATCH] Moved INSTRUCTION_TYPES declaration to front of file. --- src/movescript.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/movescript.lua b/src/movescript.lua index 054dfef..a514a08 100644 --- a/src/movescript.lua +++ b/src/movescript.lua @@ -25,6 +25,11 @@ movescript.defaultSettings = { fuels = {"minecraft:coal", "minecraft:charcoal"} } +local INSTRUCTION_TYPES = { + repeated = 1, + instruction = 2 +} + local function debug(msg, settings) if settings and settings.debug then print("[MS] " .. msg) @@ -302,11 +307,6 @@ local function executeInstruction(instruction, settings) end end -local INSTRUCTION_TYPES = { - repeated = 1, - instruction = 2 -} - local function parseInstructionOptions(text, settings) local idx, endIdx = string.find(text, "%b()") if idx == nil or endIdx - idx < 4 then return nil end