From c55374cdfadd9cc04db63908c7ac9cf8ec6aff21 Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Mon, 16 Oct 2017 23:39:30 +0100 Subject: devices.lua: convert pump to use new directional flow class --- devices.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'devices.lua') diff --git a/devices.lua b/devices.lua index 5203bf3..f1d1dad 100644 --- a/devices.lua +++ b/devices.lua @@ -161,11 +161,10 @@ for s in ipairs(states) do local fdir = node.param2 minetest.swap_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir }) end, - -- FIXME - does this preserve metadata? need to look at this on_rotate = screwdriver.rotate_simple }) - -- FIXME: currently a simple flow device, but needs directionality checking - new_flow_logic_register.simple(pumpname) + -- FIXME: this currently assumes that pumps can only rotate around the fixed axis pointing Y+. + new_flow_logic_register.directional(pumpname, function(node) return { {x=0,y=1,z=0} } end) local pump_drive = 4 if states[s] ~= "off" then new_flow_logic_register.intake_simple(pumpname, pump_drive) -- cgit v1.2.3