summaryrefslogtreecommitdiff
path: root/mesecons_luacontroller
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_luacontroller')
-rw-r--r--mesecons_luacontroller/doc/luacontroller/description.html4
-rw-r--r--mesecons_luacontroller/init.lua14
2 files changed, 9 insertions, 9 deletions
diff --git a/mesecons_luacontroller/doc/luacontroller/description.html b/mesecons_luacontroller/doc/luacontroller/description.html
index ca14615..e549ffe 100644
--- a/mesecons_luacontroller/doc/luacontroller/description.html
+++ b/mesecons_luacontroller/doc/luacontroller/description.html
@@ -1,5 +1,5 @@
-The luacontroller is an advanced programmable component.
-You can simply code it in the language mesecons uses itself: Lua!
+The Luacontroller is an advanced programmable component.
+You can simply code it in the language Mesecons uses itself: Lua!
All the code runs in a sandbox, so it's completely safe (but I won't guarantee that for absolute certainty!).
<a href="http://mesecons.net/luacontroller/">Documentation is available here!</a>
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua
index d874fdf..c754eda 100644
--- a/mesecons_luacontroller/init.lua
+++ b/mesecons_luacontroller/init.lua
@@ -12,7 +12,7 @@
-- 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
-- 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
-- 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
@@ -219,7 +219,7 @@ end
local function safe_string_find(...)
if (select(4, ...)) ~= true then
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
return string.find(...)
@@ -232,7 +232,7 @@ local function remove_functions(x)
end
-- 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 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
local rports = get_real_port_states(pos)
- -- Create new library tables on each call to prevent one LuaController
- -- from breaking a library and messing up other LuaControllers.
+ -- Create new library tables on each call to prevent one Luacontroller
+ -- from breaking a library and messing up other Luacontrollers.
local env = {
pin = merge_port_states(vports, rports),
port = vports_copy,
@@ -595,7 +595,7 @@ for d = 0, 1 do
}
minetest.register_node(node_name, {
- description = "LuaController",
+ description = "Luacontroller",
drawtype = "nodebox",
tiles = {
top,
@@ -636,7 +636,7 @@ end
end
------------------------------
--- Overheated LuaController --
+-- Overheated Luacontroller --
------------------------------
minetest.register_node(BASENAME .. "_burnt", {