1
0
Fork 0

master #1

Merged
WolfySoy merged 1116 commits from VoxeLibre/VoxeLibre:master into PotionEffectTweaks 2024-07-02 11:49:28 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 2dafbae64b - Show all commits

View File

@ -340,6 +340,7 @@ local function on_put(pos, listname, index, stack, player)
local inv = meta:get_inventory() local inv = meta:get_inventory()
local str = "" local str = ""
local stack local stack
local oldparam2 = minetest.get_node(pos).param2
for i=1, inv:get_size("stand") do for i=1, inv:get_size("stand") do
stack = inv:get_stack("stand", i) stack = inv:get_stack("stand", i)
if not stack:is_empty() then if not stack:is_empty() then
@ -347,7 +348,7 @@ local function on_put(pos, listname, index, stack, player)
else str = str.."0" else str = str.."0"
end end
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) minetest.get_node_timer(pos):start(1.0)
--some code here to enforce only potions getting placed on stands --some code here to enforce only potions getting placed on stands
end end