summaryrefslogtreecommitdiff
path: root/mesecons_luacontroller
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2017-02-15 19:52:29 +0100
committerJeija <norrepli@gmail.com>2017-03-07 19:04:05 +0100
commit967bde284a7ba12584c4529d303f5593b2679da3 (patch)
tree415c9c92ac4bfcf9127678057106b9701e0aa17d /mesecons_luacontroller
parentd80c788fab91d20928bb4dedaf6018a310544ca9 (diff)
downloadmesecons-967bde284a7ba12584c4529d303f5593b2679da3.tar
mesecons-967bde284a7ba12584c4529d303f5593b2679da3.tar.gz
mesecons-967bde284a7ba12584c4529d303f5593b2679da3.tar.bz2
mesecons-967bde284a7ba12584c4529d303f5593b2679da3.tar.xz
mesecons-967bde284a7ba12584c4529d303f5593b2679da3.zip
Spell-check and clarify item names
* Fix inconsistent insulated mesecon names * Clarify lightstone names * Rename meselamp to "Mesecon Lamp" * Use capitalization "Luacontroller" consistently * Cleanup / improvements for logic gate naming
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", {