Moved INSTRUCTION_TYPES declaration to front of file.
This commit is contained in:
parent
9a00985a68
commit
78d49f8abc
|
@ -25,6 +25,11 @@ movescript.defaultSettings = {
|
||||||
fuels = {"minecraft:coal", "minecraft:charcoal"}
|
fuels = {"minecraft:coal", "minecraft:charcoal"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local INSTRUCTION_TYPES = {
|
||||||
|
repeated = 1,
|
||||||
|
instruction = 2
|
||||||
|
}
|
||||||
|
|
||||||
local function debug(msg, settings)
|
local function debug(msg, settings)
|
||||||
if settings and settings.debug then
|
if settings and settings.debug then
|
||||||
print("[MS] " .. msg)
|
print("[MS] " .. msg)
|
||||||
|
@ -302,11 +307,6 @@ local function executeInstruction(instruction, settings)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local INSTRUCTION_TYPES = {
|
|
||||||
repeated = 1,
|
|
||||||
instruction = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
local function parseInstructionOptions(text, settings)
|
local function parseInstructionOptions(text, settings)
|
||||||
local idx, endIdx = string.find(text, "%b()")
|
local idx, endIdx = string.find(text, "%b()")
|
||||||
if idx == nil or endIdx - idx < 4 then return nil end
|
if idx == nil or endIdx - idx < 4 then return nil end
|
||||||
|
|
Loading…
Reference in New Issue