From 46d44eebcf9bb148cea505fcb4f25a97efcd6368 Mon Sep 17 00:00:00 2001 From: Zefram Date: Tue, 22 Jul 2014 15:33:16 +0100 Subject: Refactor deployer and dispenser Merge implementations into a single "wielder" mechanism. Clean up the code a bit. Fix get_player_control_bits for the dispenser (it wasn't indicating the sneak setting). Fix drops for dispenser (dispenser_on was dropping as itself). Show item image, as well as name, at head of form. --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 265ae1d..625a99c 100644 --- a/init.lua +++ b/init.lua @@ -114,14 +114,13 @@ dofile(pipeworks.modpath.."/flowing_logic.lua") dofile(pipeworks.modpath.."/crafts.lua") dofile(pipeworks.modpath.."/tubes.lua") dofile(pipeworks.modpath.."/trashcan.lua") +dofile(pipeworks.modpath.."/wielder.lua") if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end if pipeworks.enable_redefines then dofile(pipeworks.modpath.."/compat.lua") end if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua") end -if pipeworks.enable_deployer then dofile(pipeworks.modpath.."/deployer.lua") end -if pipeworks.enable_dispenser then dofile(pipeworks.modpath.."/dispenser.lua") end if pipeworks.enable_node_breaker then dofile(pipeworks.modpath.."/node_breaker.lua") -- cgit v1.2.3