Moved INSTRUCTION_TYPES declaration to front of file.

This commit is contained in:
Andrew Lalis 2022-12-31 11:09:03 +01:00
parent 9a00985a68
commit 78d49f8abc
1 changed files with 5 additions and 5 deletions

View File

@ -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