diff options
Diffstat (limited to 'nodes')
| -rw-r--r-- | nodes/node_builders.lua | 4 | ||||
| -rw-r--r-- | nodes/node_controllers.lua | 10 | 
2 files changed, 7 insertions, 7 deletions
| 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) | 
