From 4aa321957497512ea012736aa2b594818d328dd4 Mon Sep 17 00:00:00 2001 From: Megaf Date: Thu, 2 Oct 2014 21:46:19 +0100 Subject: [PATCH] Removed Pipeworks compatibility. It seems like this chest can not use pipeworks. When one connect a filter to it and punch or signal the filter it will cause the server to crash. ``` 17:27:24: ACTION[ServerThread]: Megaf joins game. List of players: Megaf 17:27:37: ACTION[ServerThread]: Megaf places node pipeworks:filter at (5,7,-17) 17:27:37: ACTION[ServerThread]: facedir: 3 17:27:39: ERROR[main]: ERROR: An unhandled exception occurred: ...minetest/Server/bin/../mods/pipeworks/item_transport.lua:54: bad argument #1 to 'ipairs' (table expected, got nil ) 17:27:39: ERROR[main]: stack traceback: 17:27:39: ERROR[main]: [C]: in function 'ipairs' 17:27:39: ERROR[main]: ...minetest/Server/bin/../mods/pipeworks/item_transport.lua:54: in function 'grabAndFire' 17:27:39: ERROR[main]: ...minetest/Server/bin/../mods/pipeworks/item_transport.lua:150: in function 'punch_filter' 17:27:39: ERROR[main]: ...minetest/Server/bin/../mods/pipeworks/item_transport.lua:214: in function <...minetest/Server/bin/../mods/pipeworks/item_transport.lua:213> In thread b693c220: /home/minetest/Server/src/main.cpp:1955: int main(int, char**): Assertion '0' failed. Debug stacks: DEBUG STACK FOR THREAD b23ff440: #0 virtual void* CurlFetchThread::Thread() DEBUG STACK FOR THREAD b693c220: #0 int main(int, char**) (Leftover data: #1 Dedicated server branch) (Leftover data: #2 virtual void ServerMap::save(ModifiedState)) (Leftover data: #3 void ItemStack::serialize(std::ostream&) const) Aborted ``` --- wifi.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/wifi.lua b/wifi.lua index 23ea89e..830986f 100644 --- a/wifi.lua +++ b/wifi.lua @@ -5,22 +5,7 @@ minetest.register_node("more_chests:wifi", { {name="wifi_front_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}} }, paramtype2 = "facedir", - groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice = 1, tubedevice_receiver = 1}, --- Pipeworks - tube = { - insert_object = function(pos, node, stack, direction) - local meta = minetest.get_meta(pos) - local inv = meta:get_inventory() - return inv:add_item("main", stack) - end, - can_insert = function(pos, node, stack, direction) - local meta = minetest.get_meta(pos) - local inv = meta:get_inventory() - return inv:room_for_item("main", stack) - end, - input_inventory = "main", - connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} - }, + groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,}, legacy_facedir_simple = true, sounds = default.node_sound_wood_defaults(), on_construct = function(pos)