From 2dafbae64bb6c072dcb126f381e58709191189c3 Mon Sep 17 00:00:00 2001 From: JoseDouglas26 Date: Fri, 7 Jun 2024 06:10:52 +0000 Subject: [PATCH] Hotfix for brewing stands rotation (#4371) Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4371 Reviewed-by: teknomunk Co-authored-by: JoseDouglas26 Co-committed-by: JoseDouglas26 --- mods/ITEMS/mcl_brewing/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_brewing/init.lua b/mods/ITEMS/mcl_brewing/init.lua index cdac3429e..937d9089c 100644 --- a/mods/ITEMS/mcl_brewing/init.lua +++ b/mods/ITEMS/mcl_brewing/init.lua @@ -340,6 +340,7 @@ local function on_put(pos, listname, index, stack, player) local inv = meta:get_inventory() local str = "" local stack + local oldparam2 = minetest.get_node(pos).param2 for i=1, inv:get_size("stand") do stack = inv:get_stack("stand", i) if not stack:is_empty() then @@ -347,7 +348,7 @@ local function on_put(pos, listname, index, stack, player) else str = str.."0" end end - minetest.swap_node(pos, {name = "mcl_brewing:stand_"..str}) + minetest.swap_node(pos, {name = "mcl_brewing:stand_"..str, param2 = oldparam2}) minetest.get_node_timer(pos):start(1.0) --some code here to enforce only potions getting placed on stands end