mirror of
https://github.com/joe7575/techpack.git
synced 2024-12-25 23:17:36 +01:00
Warehouse boxes bugfix for the Blackhole bugfix
This commit is contained in:
parent
dc71bf90f4
commit
a2926e724c
@ -130,7 +130,7 @@ tubelib.register_node(NODE_NAME,
|
||||
{NODE_NAME.."_active", NODE_NAME.."_defect"}, {
|
||||
on_push_item = function(pos, side, item)
|
||||
local meta = M(pos)
|
||||
meta:set_string("push_dir", side)
|
||||
meta:set_string("push_dir", wh.Turn180[side])
|
||||
local num = wh.numbers_to_shift(Box, meta, item)
|
||||
if num > 0 then
|
||||
item:set_count(num)
|
||||
|
@ -130,7 +130,7 @@ tubelib.register_node(NODE_NAME,
|
||||
{NODE_NAME.."_active", NODE_NAME.."_defect"}, {
|
||||
on_push_item = function(pos, side, item)
|
||||
local meta = M(pos)
|
||||
meta:set_string("push_dir", side)
|
||||
meta:set_string("push_dir", wh.Turn180[side])
|
||||
local num = wh.numbers_to_shift(Box, meta, item)
|
||||
if num > 0 then
|
||||
item:set_count(num)
|
||||
|
@ -130,7 +130,7 @@ tubelib.register_node(NODE_NAME,
|
||||
{NODE_NAME.."_active", NODE_NAME.."_defect"}, {
|
||||
on_push_item = function(pos, side, item)
|
||||
local meta = M(pos)
|
||||
meta:set_string("push_dir", side)
|
||||
meta:set_string("push_dir", wh.Turn180[side])
|
||||
local num = wh.numbers_to_shift(Box, meta, item)
|
||||
if num > 0 then
|
||||
item:set_count(num)
|
||||
|
@ -21,9 +21,11 @@ local STANDBY_TICKS = 4
|
||||
local COUNTDOWN_TICKS = 2
|
||||
local CYCLE_TIME = 2
|
||||
|
||||
|
||||
local Cache = {}
|
||||
|
||||
techpack_warehouse.Box = {}
|
||||
techpack_warehouse.Turn180 = {F="B", L="R", B="F", R="L", U="D", D="U"}
|
||||
|
||||
local function formspec(self, pos, meta)
|
||||
return "size[10,9]"..
|
||||
|
Loading…
Reference in New Issue
Block a user