Use wording “Luacontroller” everywhere

This commit is contained in:
Wuzzy 2017-02-17 18:51:27 +01:00
parent aa9a92b4aa
commit f5426d15ba
2 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@
-- ports = get_real_port_states(pos): gets if inputs are powered from outside -- ports = get_real_port_states(pos): gets if inputs are powered from outside
-- newport = merge_port_states(state1, state2): just does result = state1 or state2 for every port -- newport = merge_port_states(state1, state2): just does result = state1 or state2 for every port
-- set_port(pos, rule, state): activates/deactivates the mesecons according to the port states -- set_port(pos, rule, state): activates/deactivates the mesecons according to the port states
-- set_port_states(pos, ports): Applies new port states to a LuaController at pos -- set_port_states(pos, ports): Applies new port states to a Luacontroller at pos
-- run(pos): runs the code in the controller at pos -- run(pos): runs the code in the controller at pos
-- reset_meta(pos, code, errmsg): performs a software-reset, installs new code and prints error messages -- reset_meta(pos, code, errmsg): performs a software-reset, installs new code and prints error messages
-- resetn(pos): performs a hardware reset, turns off all ports -- resetn(pos): performs a hardware reset, turns off all ports
@ -219,7 +219,7 @@ end
local function safe_string_find(...) local function safe_string_find(...)
if (select(4, ...)) ~= true then if (select(4, ...)) ~= true then
debug.sethook() -- Clear hook debug.sethook() -- Clear hook
error("string.find: 'plain' (fourth parameter) must always be true in a LuaController") error("string.find: 'plain' (fourth parameter) must always be true in a Luacontroller")
end end
return string.find(...) return string.find(...)
@ -232,7 +232,7 @@ local function remove_functions(x)
end end
-- Make sure to not serialize the same table multiple times, otherwise -- Make sure to not serialize the same table multiple times, otherwise
-- writing mem.test = mem in the LuaController will lead to infinite recursion -- writing mem.test = mem in the Luacontroller will lead to infinite recursion
local seen = {} local seen = {}
local function rfuncs(x) local function rfuncs(x)
@ -308,8 +308,8 @@ local function create_environment(pos, mem, event)
for k, v in pairs(vports) do vports_copy[k] = v end for k, v in pairs(vports) do vports_copy[k] = v end
local rports = get_real_port_states(pos) local rports = get_real_port_states(pos)
-- Create new library tables on each call to prevent one LuaController -- Create new library tables on each call to prevent one Luacontroller
-- from breaking a library and messing up other LuaControllers. -- from breaking a library and messing up other Luacontrollers.
local env = { local env = {
pin = merge_port_states(vports, rports), pin = merge_port_states(vports, rports),
port = vports_copy, port = vports_copy,
@ -595,7 +595,7 @@ for d = 0, 1 do
} }
minetest.register_node(node_name, { minetest.register_node(node_name, {
description = "Lua Controller", description = "Luacontroller",
drawtype = "nodebox", drawtype = "nodebox",
tiles = { tiles = {
top, top,
@ -636,7 +636,7 @@ end
end end
------------------------------ ------------------------------
-- Overheated LuaController -- -- Overheated Luacontroller --
------------------------------ ------------------------------
minetest.register_node(BASENAME .. "_burnt", { minetest.register_node(BASENAME .. "_burnt", {