From efdd22d69fd377a69ac1b7fee0dd3e5c2ef0660a Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 27 Nov 2022 00:17:13 +0100 Subject: [PATCH] Fix fishbuckets placing water in the nether --- mods/ITEMS/mcl_buckets/fishbuckets.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_buckets/fishbuckets.lua b/mods/ITEMS/mcl_buckets/fishbuckets.lua index f011a9adf1..aecd177ce0 100644 --- a/mods/ITEMS/mcl_buckets/fishbuckets.lua +++ b/mods/ITEMS/mcl_buckets/fishbuckets.lua @@ -29,6 +29,10 @@ local function on_place_fish(itemstack, placer, pointed_thing) elseif n.name == "mclx_core:river_water_flowing" then water = nil end + if mcl_worlds.pos_to_dimension(pos) == "nether" then + water = nil + minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true) + end if water then minetest.set_node(pos,{name = water}) end @@ -53,8 +57,6 @@ for techname, fishname in pairs(fish_names) do on_place = on_place_fish, on_secondary_use = on_place_fish, _on_dispense = function(stack, pos, droppos, dropnode, dropdir) - local buildable = minetest.registered_nodes[dropnode.name].buildable_to or dropnode.name == "mcl_portals:portal" - if not buildable then return stack end return on_place_fish(stack, nil, {above=droppos}) end, })