summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-01-03 23:37:51 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-01-03 23:37:51 -0700
commitf43e64caba3e9be12a0ed345fd0eae35cbfd15e2 (patch)
tree26b8e7bf4150533569def3562b8ffe076ae4b0b0
parentcfd6071ee669ac6bffeffbdba8e0e05dfaa77b52 (diff)
Reduce the length of some error messages, was able to overflow the infotext under certain conditions.
-rw-r--r--node_controllers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_controllers.lua b/node_controllers.lua
index ff5f20b..b9c3813 100644
--- a/node_controllers.lua
+++ b/node_controllers.lua
@@ -129,10 +129,10 @@ local execute_cycle = function(pos, clicker)
local return_string = nil
if test_build_return_code == 3 then
minetest.sound_play("honk", {gain=0.5, pos=pos}) -- A builder is not configured
- return_string = "Digtron connected to at least one builder node that hasn't had an output material assigned.\n"
+ return_string = "Digtron connected to at least one builder with no output material assigned.\n"
elseif test_build_return_code == 2 then
minetest.sound_play("dingding", {gain=1.0, pos=pos}) -- Insufficient inventory
- return_string = string.format("Digtron has insufficient materials in inventory to execute all build operations.\nNeeded: %s\n",
+ return_string = string.format("Digtron has insufficient building materials. Needed: %s\n",
test_build_return_item:get_name())
end
return pos, return_string .. status_text --Abort, don't dig and don't build.