From a2c0dd11307120470a7c4ca4915f7741729e8e01 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 7 Feb 2021 11:20:11 +0100 Subject: Various small fixes * Save the fakeplayer's wielded item in set_wielded_item * pipeworks.luaentity: Return the found objects in get_objects_inside_radius * Remove the invalid and unused on_blast return values in lua_tube.lua This should avoid a crash when a strong explosion happens next to a Lua Tube. * Do not access a global "nodename" in a BUG message. This avoids a potential crash, in case the message actually appears in practice. * Set the Flow Sensor and Fountain Head mesecons connection rules * pipeworks.luaentity: Use the same function for move_to and set_pos * (no functional change) Do not save the object returned by tube_inject_item into the "item1" local variable in filter-injector.lua --- lua_tube.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua_tube.lua') diff --git a/lua_tube.lua b/lua_tube.lua index 59288cd..10cdf80 100644 --- a/lua_tube.lua +++ b/lua_tube.lua @@ -993,7 +993,7 @@ for white = 0, 1 do on_blast = function(pos, intensity) if not intensity or intensity > 1 + 3^0.5 then minetest.remove_node(pos) - return {string.format("%s_%s", name, dropname)} + return end minetest.swap_node(pos, {name = "pipeworks:broken_tube_1"}) pipeworks.scan_for_tube_objects(pos) @@ -1070,7 +1070,7 @@ minetest.register_node(BASENAME .. "_burnt", { on_blast = function(pos, intensity) if not intensity or intensity > 1 + 3^0.5 then minetest.remove_node(pos) - return {string.format("%s_%s", name, dropname)} + return end minetest.swap_node(pos, {name = "pipeworks:broken_tube_1"}) pipeworks.scan_for_tube_objects(pos) -- cgit v1.2.3