From 860890b10061d76c5ea011fe0befca435be5f243 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 19 Sep 2017 23:44:59 -0600 Subject: update localization --- locale/template.pot | 290 +++++++++++++++++++++------------------------ nodes/node_builders.lua | 4 +- nodes/node_controllers.lua | 10 +- util_execute_cycle.lua | 17 ++- 4 files changed, 153 insertions(+), 168 deletions(-) diff --git a/locale/template.pot b/locale/template.pot index 7489c3a..614fa41 100644 --- a/locale/template.pot +++ b/locale/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-09-10 19:05-0600\n" +"POT-Creation-Date: 2017-09-19 23:37-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -890,51 +890,87 @@ msgid "" "pass through the structure as it's being built." msgstr "" -#: node_axle.lua:6 -msgid "Digtron Rotation Axle" +#: util_execute_cycle.lua:51 +msgid "Digtron is adjacent to unloaded nodes." +msgstr "" + +#: util_execute_cycle.lua:65 +msgid "Digtron has @1 blocks but only enough traction to move @2 blocks.\n" +msgstr "" + +#: util_execute_cycle.lua:110 +#: util_execute_cycle.lua:316 +#: util_execute_cycle.lua:393 +#: util_execute_cycle.lua:504 +#: nodes\node_controllers.lua:48 +#: nodes\node_controllers.lua:201 +msgid "Heat remaining in controller furnace: @1" msgstr "" -#: node_axle.lua:57 #: util_execute_cycle.lua:172 -#: util_execute_cycle.lua:367 -#: util_execute_cycle.lua:456 +#: util_execute_cycle.lua:366 +#: util_execute_cycle.lua:455 +#: nodes\node_axle.lua:57 msgid "Digtron is obstructed." msgstr "" -#: node_builders.lua:13 +#: util_execute_cycle.lua:220 +msgid "Digtron needs more fuel." +msgstr "" + +#: util_execute_cycle.lua:230 +msgid "" +"Digtron connected to at least one builder with no output material assigned." +msgstr "" + +#: util_execute_cycle.lua:234 +msgid "Digtron has insufficient building materials. Needed: @1" +msgstr "" + +#: util_execute_cycle.lua:303 +msgid "" +"Digtron unexpectedly failed to execute one or more build operations, likely " +"due to an inventory error." +msgstr "" + +#: nodes\node_axle.lua:6 +msgid "Digtron Rotation Axle" +msgstr "" + +#: nodes\node_builders.lua:18 msgid "Block to build" msgstr "" -#: node_builders.lua:14 +#: nodes\node_builders.lua:19 msgid "Extrusion" msgstr "" -#: node_builders.lua:15 +#: nodes\node_builders.lua:20 msgid "" "Builder will extrude this many blocks in the direction it is facing.\n" "Can be set from 1 to @1.\n" "Note that Digtron won't build into unloaded map regions." msgstr "" -#: node_builders.lua:16 -#: node_diggers.lua:32 +#: nodes\node_builders.lua:21 +#: nodes\node_diggers.lua:32 msgid "Periodicity" msgstr "" -#: node_builders.lua:17 +#: nodes\node_builders.lua:22 msgid "" "Builder will build once every n steps.\n" "These steps are globally aligned, so all builders with the\n" "same period and offset will build on the same location." msgstr "" -#: node_builders.lua:18 -#: node_controllers.lua:91 -#: node_diggers.lua:34 +#: nodes\node_builders.lua:23 +#: nodes\node_controllers.lua:91 +#: nodes\node_diggers.lua:34 msgid "Offset" msgstr "" -#: node_builders.lua:19 +#: nodes\node_builders.lua:24 msgid "" "Offsets the start of periodicity counting by this amount.\n" "For example, a builder with period 2 and offset 0 builds\n" @@ -942,83 +978,68 @@ msgid "" "offset 1 builds every odd-numbered block." msgstr "" -#: node_builders.lua:20 +#: nodes\node_builders.lua:25 +#: nodes\node_diggers.lua:36 msgid "" "Save &\n" "Show" msgstr "" -#: node_builders.lua:21 -#: node_diggers.lua:37 +#: nodes\node_builders.lua:26 +#: nodes\node_diggers.lua:37 msgid "Saves settings" msgstr "" -#: node_builders.lua:22 +#: nodes\node_builders.lua:27 msgid "Facing" msgstr "" -#: node_builders.lua:23 +#: nodes\node_builders.lua:28 msgid "" "Value from 0-23. Not all block types make use of this.\n" "Use the 'Read & Save' button to copy the facing of the block\n" "currently in the builder output location." msgstr "" -#: node_builders.lua:24 +#: nodes\node_builders.lua:29 msgid "" "Read &\n" "Save" msgstr "" -#: node_builders.lua:25 +#: nodes\node_builders.lua:30 msgid "" "Reads the facing of the block currently in the build location,\n" "then saves all settings." msgstr "" -#: node_builders.lua:34 -#: node_controllers.lua:106 -#: node_crate.lua:62 -#: node_diggers.lua:43 +#: nodes\node_builders.lua:39 +#: nodes\node_controllers.lua:106 +#: nodes\node_crate.lua:62 +#: nodes\node_diggers.lua:41 msgid "Help" msgstr "" -#: node_builders.lua:35 -#: node_controllers.lua:107 -#: node_crate.lua:63 -#: node_diggers.lua:44 +#: nodes\node_builders.lua:40 +#: nodes\node_controllers.lua:107 +#: nodes\node_crate.lua:63 +#: nodes\node_diggers.lua:42 msgid "Show documentation about this block" msgstr "" -#: node_builders.lua:40 +#: nodes\node_builders.lua:45 msgid "Digtron Builder Module" msgstr "" -#: node_builders.lua:279 -#: node_builders.lua:294 -#, lua-format -msgid "%s uses Digtron to build %s at (%d, %d, %d), displacing %s" -msgstr "" - -#: node_controllers.lua:20 +#: nodes\node_controllers.lua:20 msgid "Digtron Control Module" msgstr "" -#: node_controllers.lua:48 -#: node_controllers.lua:200 -#: util_execute_cycle.lua:110 -#: util_execute_cycle.lua:317 -#: util_execute_cycle.lua:394 -#: util_execute_cycle.lua:505 -#, lua-format -msgid "Heat remaining in controller furnace: %d" -msgstr "" - -#: node_controllers.lua:83 +#: nodes\node_controllers.lua:83 msgid "Cycles" msgstr "" -#: node_controllers.lua:84 +#: nodes\node_controllers.lua:84 msgid "" "When triggered, this controller will try to run for the given number of " "cycles.\n" @@ -1027,29 +1048,29 @@ msgid "" "you can fix the problem and restart." msgstr "" -#: node_controllers.lua:85 +#: nodes\node_controllers.lua:85 msgid "Set" msgstr "" -#: node_controllers.lua:86 +#: nodes\node_controllers.lua:86 msgid "Saves the cycle setting without starting the controller running" msgstr "" -#: node_controllers.lua:87 +#: nodes\node_controllers.lua:87 msgid "" "Set &\n" "Execute" msgstr "" -#: node_controllers.lua:88 +#: nodes\node_controllers.lua:88 msgid "Begins executing the given number of cycles" msgstr "" -#: node_controllers.lua:89 +#: nodes\node_controllers.lua:89 msgid "Slope" msgstr "" -#: node_controllers.lua:90 +#: nodes\node_controllers.lua:90 msgid "" "For diagonal digging. After moving forward this number of nodes the auto " "controller\n" @@ -1058,127 +1079,126 @@ msgid "" "Set to 0 for no lateral digging." msgstr "" -#: node_controllers.lua:92 +#: nodes\node_controllers.lua:92 msgid "" "Sets the offset of the lateral motion defined in the Slope field.\n" "Note: this offset is relative to the controller's location.\n" "The controller will move laterally when it reaches the indicated point." msgstr "" -#: node_controllers.lua:93 +#: nodes\node_controllers.lua:93 msgid "Delay" msgstr "" -#: node_controllers.lua:94 +#: nodes\node_controllers.lua:94 msgid "Number of seconds to wait between each cycle" msgstr "" -#: node_controllers.lua:96 +#: nodes\node_controllers.lua:96 msgid "Stop block" msgstr "" -#: node_controllers.lua:128 -#: node_controllers.lua:147 -#: node_controllers.lua:160 -#, lua-format -msgid "Cycles remaining: %d" +#: nodes\node_controllers.lua:128 +#: nodes\node_controllers.lua:147 +#: nodes\node_controllers.lua:160 +msgid "Cycles remaining: @1" msgstr "" -#: node_controllers.lua:128 -#: node_controllers.lua:147 +#: nodes\node_controllers.lua:128 +#: nodes\node_controllers.lua:147 msgid "Halted!" msgstr "" -#: node_controllers.lua:172 +#: nodes\node_controllers.lua:172 msgid "Digtron Automatic Control Module" msgstr "" -#: node_controllers.lua:284 +#: nodes\node_controllers.lua:285 msgid "Interrupted!" msgstr "" -#: node_controllers.lua:300 +#: nodes\node_controllers.lua:300 msgid "Digtron Pusher Module" msgstr "" -#: node_crate.lua:6 +#: nodes\node_crate.lua:6 msgid "Digtron Crate (Empty)" msgstr "" -#: node_crate.lua:22 +#: nodes\node_crate.lua:22 msgid "Digtron can't be packaged, it contains protected blocks" msgstr "" -#: node_crate.lua:42 -#: node_crate.lua:43 +#: nodes\node_crate.lua:42 +#: nodes\node_crate.lua:43 msgid "Crated Digtron" msgstr "" -#: node_crate.lua:55 -#: node_crate.lua:70 +#: nodes\node_crate.lua:55 +#: nodes\node_crate.lua:70 msgid "Digtron Name" msgstr "" -#: node_crate.lua:56 -#: node_crate.lua:71 +#: nodes\node_crate.lua:56 +#: nodes\node_crate.lua:71 msgid "" "Save\n" "Title" msgstr "" -#: node_crate.lua:57 -#: node_crate.lua:72 +#: nodes\node_crate.lua:57 +#: nodes\node_crate.lua:72 msgid "Saves the title of this Digtron" msgstr "" -#: node_crate.lua:58 -#: node_crate.lua:73 +#: nodes\node_crate.lua:58 +#: nodes\node_crate.lua:73 msgid "" "Show\n" "Blocks" msgstr "" -#: node_crate.lua:59 -#: node_crate.lua:74 +#: nodes\node_crate.lua:59 +#: nodes\node_crate.lua:74 msgid "Shows which blocks the packed Digtron will occupy if unpacked" msgstr "" -#: node_crate.lua:60 -#: node_crate.lua:75 +#: nodes\node_crate.lua:60 +#: nodes\node_crate.lua:75 msgid "Unpack" msgstr "" -#: node_crate.lua:61 -#: node_crate.lua:76 +#: nodes\node_crate.lua:61 +#: nodes\node_crate.lua:76 msgid "Attempts to unpack the Digtron on this location" msgstr "" -#: node_crate.lua:80 +#: nodes\node_crate.lua:80 msgid "Digtron Crate (Loaded)" msgstr "" -#: node_crate.lua:114 +#: nodes\node_crate.lua:115 msgid "" "Unable to read layout from crate metadata, regrettably this Digtron may be " "corrupted or lost." msgstr "" -#: node_crate.lua:145 +#: nodes\node_crate.lua:146 msgid "Unable to deploy Digtron due to protected blocks in target area" msgstr "" -#: node_crate.lua:151 +#: nodes\node_crate.lua:152 msgid "Unable to deploy Digtron due to obstruction in target area" msgstr "" -#: node_diggers.lua:33 +#: nodes\node_diggers.lua:33 msgid "" "Digger will dig once every n steps.\n" "These steps are globally aligned, all diggers with\n" "the same period and offset will dig on the same location." msgstr "" -#: node_diggers.lua:35 +#: nodes\node_diggers.lua:35 msgid "" "Offsets the start of periodicity counting by this amount.\n" "For example, a digger with period 2 and offset 0 digs\n" @@ -1186,106 +1206,72 @@ msgid "" "offset 1 digs every odd-numbered block." msgstr "" -#: node_diggers.lua:36 -msgid "Save" -msgstr "" - -#: node_diggers.lua:72 +#: nodes\node_diggers.lua:75 msgid "Digtron Digger Head" msgstr "" -#: node_diggers.lua:125 +#: nodes\node_diggers.lua:129 msgid "Digtron Intermittent Digger Head" msgstr "" -#: node_diggers.lua:195 +#: nodes\node_diggers.lua:200 msgid "Digtron Soft Material Digger Head" msgstr "" -#: node_diggers.lua:250 +#: nodes\node_diggers.lua:255 msgid "Digtron Intermittent Soft Material Digger Head" msgstr "" -#: node_diggers.lua:323 +#: nodes\node_diggers.lua:329 msgid "Digtron Dual Digger Head" msgstr "" -#: node_diggers.lua:400 +#: nodes\node_diggers.lua:406 msgid "Digtron Dual Soft Material Digger Head" msgstr "" -#: node_misc.lua:7 +#: nodes\node_misc.lua:7 msgid "Digtron Structure" msgstr "" -#: node_misc.lua:40 +#: nodes\node_misc.lua:40 msgid "Digtron Light" msgstr "" -#: node_misc.lua:62 +#: nodes\node_misc.lua:62 msgid "Digtron Panel" msgstr "" -#: node_misc.lua:85 +#: nodes\node_misc.lua:85 msgid "Digtron Edge Panel" msgstr "" -#: node_misc.lua:114 +#: nodes\node_misc.lua:114 msgid "Digtron Corner Panel" msgstr "" -#: node_storage.lua:8 -msgid "Digtron Inventory Storage" -msgstr "" - -#: node_storage.lua:34 -#: node_storage.lua:187 +#: nodes\node_storage.lua:11 +#: nodes\node_storage.lua:171 msgid "Inventory items" msgstr "" -#: node_storage.lua:77 -msgid "Digtron Fuel Storage" +#: nodes\node_storage.lua:22 +msgid "Digtron Inventory Storage" msgstr "" -#: node_storage.lua:103 -#: node_storage.lua:189 +#: nodes\node_storage.lua:82 +#: nodes\node_storage.lua:173 msgid "Fuel items" msgstr "" -#: node_storage.lua:163 -msgid "Digtron Combined Storage" -msgstr "" - -#: recipes.lua:6 -msgid "Digtron Core" -msgstr "" - -#: util_execute_cycle.lua:51 -msgid "Digtron is adjacent to unloaded nodes." -msgstr "" - -#: util_execute_cycle.lua:220 -msgid "Digtron needs more fuel." -msgstr "" - -#: util_execute_cycle.lua:230 -msgid "" -"Digtron connected to at least one builder with no output material assigned." -msgstr "" - -#: util_execute_cycle.lua:234 -#, lua-format -msgid "Digtron has insufficient building materials. Needed: %s" +#: nodes\node_storage.lua:93 +msgid "Digtron Fuel Storage" msgstr "" -#: util_execute_cycle.lua:304 -msgid "" -"Digtron unexpectedly failed to execute one or more build operations, likely " -"due to an inventory error." +#: nodes\node_storage.lua:184 +msgid "Digtron Combined Storage" msgstr "" -#: util_execute_cycle.lua:329 -#: util_execute_cycle.lua:517 -#, lua-format -msgid "%s uses Digtron to dig %s at (%d, %d, %d)" +#: nodes\recipes.lua:6 +msgid "Digtron Core" msgstr "" diff --git a/nodes/node_builders.lua b/nodes/node_builders.lua index bfd7c00..ecb76cd 100644 --- a/nodes/node_builders.lua +++ b/nodes/node_builders.lua @@ -262,7 +262,7 @@ minetest.register_node("digtron:builder", { if not digtron.config.uses_resources then local returned_stack, success = digtron.item_place_node(item_stack, player, buildpos, build_facing) if success == true then - minetest.log("action", string.format(S("%s uses Digtron to build %s at (%d, %d, %d), displacing %s"), player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name)) + minetest.log("action", string.format("%s uses Digtron to build %s at (%d, %d, %d), displacing %s", player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name)) nodes_dug:set(buildpos.x, buildpos.y, buildpos.z, false) built_count = built_count + 1 else @@ -277,7 +277,7 @@ minetest.register_node("digtron:builder", { end local returned_stack, success = digtron.item_place_node(item_stack, player, buildpos, build_facing) if success == true then - minetest.log("action", string.format(S("%s uses Digtron to build %s at (%d, %d, %d), displacing %s"), player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name)) + minetest.log("action", string.format("%s uses Digtron to build %s at (%d, %d, %d), displacing %s", player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name)) --flag this node as *not* to be dug. nodes_dug:set(buildpos.x, buildpos.y, buildpos.z, false) digtron.award_item_built(item_stack:get_name(), player:get_player_name()) diff --git a/nodes/node_controllers.lua b/nodes/node_controllers.lua index a7eda2e..4382734 100644 --- a/nodes/node_controllers.lua +++ b/nodes/node_controllers.lua @@ -45,7 +45,7 @@ minetest.register_node("digtron:controller", { on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_float("fuel_burning", 0.0) - meta:set_string("infotext", string.format(S("Heat remaining in controller furnace: %d"), 0)) + meta:set_string("infotext", S("Heat remaining in controller furnace: @1", 0)) end, on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) @@ -125,7 +125,7 @@ digtron.auto_cycle = function(pos) local newpos, status, return_code = digtron.execute_downward_dig_cycle(pos, player) if vector.equals(pos, newpos) then - status = status .. string.format("\n" .. S("Cycles remaining: %d") .. "\n" .. S("Halted!"), cycle) + status = status .. "\n" .. S("Cycles remaining: @1", cycle) .. "\n" .. S("Halted!") meta:set_string("infotext", status) if return_code == 1 then --return code 1 happens when there's unloaded nodes adjacent, just keep trying. minetest.after(meta:get_int("period"), digtron.auto_cycle, newpos) @@ -144,7 +144,7 @@ digtron.auto_cycle = function(pos) local newpos, status, return_code = digtron.execute_dig_cycle(pos, player) if vector.equals(pos, newpos) then - status = status .. string.format("\n" .. S("Cycles remaining: %d") .. "\n" .. S("Halted!"), cycle) + status = status .. "\n" .. S("Cycles remaining: @1", cycle) .. "\n" .. S("Halted!") meta:set_string("infotext", status) if return_code == 1 then --return code 1 happens when there's unloaded nodes adjacent, just keep trying. minetest.after(meta:get_int("period"), digtron.auto_cycle, newpos) @@ -157,7 +157,7 @@ digtron.auto_cycle = function(pos) meta = minetest.get_meta(newpos) cycle = meta:get_int("cycles") - 1 meta:set_int("cycles", cycle) - status = status .. string.format("\n" .. S("Cycles remaining: %d"), cycle) + status = status .. "\n" .. S("Cycles remaining: @1", cycle) meta:set_string("infotext", status) meta:set_string("lateral_done", nil) @@ -198,7 +198,7 @@ minetest.register_node("digtron:auto_controller", { on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_float("fuel_burning", 0.0) - meta:set_string("infotext", string.format(S("Heat remaining in controller furnace: %d"), 0)) + meta:set_string("infotext", S("Heat remaining in controller furnace: @1", 0)) meta:set_string("formspec", auto_formspec) -- Reusing offset and period to keep the digtron node-moving code simple, and the names still fit well meta:set_int("period", digtron.config.cycle_time) diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua index e671480..38f4381 100644 --- a/util_execute_cycle.lua +++ b/util_execute_cycle.lua @@ -62,7 +62,7 @@ local function neighbour_test(layout, status_text, dir) if dir and dir.y ~= -1 and layout.traction * digtron.config.traction_factor < table.getn(layout.all) then -- digtrons can't fly, though they can fall minetest.sound_play("squeal", {gain=1.0, pos=layout.controller}) - return string.format("Digtron has %d blocks but only enough traction to move %d blocks.\n", table.getn(layout.all), layout.traction * digtron.config.traction_factor) + return S("Digtron has @1 blocks but only enough traction to move @2 blocks.\n", table.getn(layout.all), layout.traction * digtron.config.traction_factor) .. status_text, 2 end @@ -107,7 +107,7 @@ digtron.execute_dig_cycle = function(pos, clicker) local facing = minetest.get_node(pos).param2 local dir = minetest.facedir_to_dir(facing) local fuel_burning = meta:get_float("fuel_burning") -- get amount of burned fuel left over from last cycle - local status_text = string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning)) + local status_text = S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) local layout = DigtronLayout.create(pos, clicker) @@ -231,8 +231,7 @@ digtron.execute_dig_cycle = function(pos, clicker) return_code = 6 elseif test_build_return_code == 2 then minetest.sound_play("dingding", {gain=1.0, pos=pos}) -- Insufficient inventory - return_string = string.format(S("Digtron has insufficient building materials. Needed: %s") .. "\n", - failed_to_find:get_name()) + return_string = S("Digtron has insufficient building materials. Needed: @1", failed_to_find:get_name()) .. "\n" return_code = 7 end return pos, return_string .. status_text, return_code --Abort, don't dig and don't build. @@ -314,7 +313,7 @@ digtron.execute_dig_cycle = function(pos, clicker) fuel_burning = fuel_burning + digtron.burn(layout.fuelstores, -fuel_burning, false) end meta:set_float("fuel_burning", fuel_burning) - status_text = status_text .. string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning)) + status_text = status_text .. S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) -- Eyecandy for _, particles in pairs(particle_systems) do @@ -326,7 +325,7 @@ digtron.execute_dig_cycle = function(pos, clicker) local node_to_dig, whether_to_dig = layout.nodes_dug:pop() while node_to_dig ~= nil do if whether_to_dig == true then - minetest.log("action", string.format(S("%s uses Digtron to dig %s at (%d, %d, %d)"), clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z)) + minetest.log("action", string.format("%s uses Digtron to dig %s at (%d, %d, %d)", clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z)) minetest.remove_node(node_to_dig) end -- all of the digtron's nodes wind up in nodes_dug, so this is an ideal place to stick @@ -391,7 +390,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker) local facing = minetest.get_node(pos).param2 local dir = digtron.facedir_to_down_dir(facing) local fuel_burning = meta:get_float("fuel_burning") -- get amount of burned fuel left over from last cycle - local status_text = string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning)) + local status_text = S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) local layout = DigtronLayout.create(pos, clicker) @@ -502,7 +501,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker) fuel_burning = fuel_burning + digtron.burn(layout.fuelstores, -fuel_burning, false) end meta:set_float("fuel_burning", fuel_burning) - status_text = status_text .. string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning)) + status_text = status_text .. S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) -- Eyecandy for _, particles in pairs(particle_systems) do @@ -514,7 +513,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker) local node_to_dig, whether_to_dig = layout.nodes_dug:pop() while node_to_dig ~= nil do if whether_to_dig == true then - minetest.log("action", string.format(S("%s uses Digtron to dig %s at (%d, %d, %d)"), clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z)) + minetest.log("action", string.format("%s uses Digtron to dig %s at (%d, %d, %d)", clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z)) minetest.remove_node(node_to_dig) end -- all of the digtron's nodes wind up in nodes_dug, so this is an ideal place to stick -- cgit v1.2.3