0
0
Fork 0

Fix dispenser inventory not getting set if up/down

This commit is contained in:
Wuzzy 2018-01-13 03:15:32 +01:00
parent f72717e8de
commit 7626102bdb
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@ local orientate_dispenser = function(pos, placer)
local node = minetest.get_node(pos)
if pitch > 55 then
minetest.set_node(pos, {name="mcl_dispensers:dispenser_up", param2 = node.param2})
minetest.swap_node(pos, {name="mcl_dispensers:dispenser_up", param2 = node.param2})
elseif pitch < -55 then
minetest.set_node(pos, {name="mcl_dispensers:dispenser_down", param2 = node.param2})
minetest.swap_node(pos, {name="mcl_dispensers:dispenser_down", param2 = node.param2})
end
end