diff options
author | HybridDog <ovvv@web.de> | 2021-02-07 11:20:11 +0100 |
---|---|---|
committer | HybridDog <ovvv@web.de> | 2021-02-07 11:58:18 +0100 |
commit | a2c0dd11307120470a7c4ca4915f7741729e8e01 (patch) | |
tree | 46a065b492acfe1db1ff83e3875b08e38bfc580b /devices.lua | |
parent | f0ef43823cb198a3f426d7d1db88d42f5079fbbd (diff) | |
download | pipeworks-a2c0dd11307120470a7c4ca4915f7741729e8e01.tar pipeworks-a2c0dd11307120470a7c4ca4915f7741729e8e01.tar.gz pipeworks-a2c0dd11307120470a7c4ca4915f7741729e8e01.tar.bz2 pipeworks-a2c0dd11307120470a7c4ca4915f7741729e8e01.tar.xz pipeworks-a2c0dd11307120470a7c4ca4915f7741729e8e01.zip |
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
Diffstat (limited to 'devices.lua')
-rw-r--r-- | devices.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devices.lua b/devices.lua index a96767b..86b38ea 100644 --- a/devices.lua +++ b/devices.lua @@ -465,7 +465,7 @@ minetest.register_node(nodename_sensor_empty, { end, on_construct = function(pos) if mesecon then - mesecon.receptor_off(pos, rules) + mesecon.receptor_off(pos, pipeworks.mesecons_rules) end end, selection_box = { @@ -504,7 +504,7 @@ minetest.register_node(nodename_sensor_loaded, { end, on_construct = function(pos) if mesecon then - mesecon.receptor_on(pos, rules) + mesecon.receptor_on(pos, pipeworks.mesecons_rules) end end, selection_box = { @@ -626,7 +626,7 @@ minetest.register_node(nodename_fountain_empty, { end, on_construct = function(pos) if mesecon then - mesecon.receptor_on(pos, rules) + mesecon.receptor_on(pos, pipeworks.mesecons_rules) end end, selection_box = { @@ -661,7 +661,7 @@ minetest.register_node(nodename_fountain_loaded, { end, on_construct = function(pos) if mesecon then - mesecon.receptor_on(pos, rules) + mesecon.receptor_on(pos, pipeworks.mesecons_rules) end end, selection_box = { |