From 7a5aa54035479b28bd03c3c1a9d56c217bad7339 Mon Sep 17 00:00:00 2001 From: iliekprogrammar Date: Sun, 14 Mar 2021 12:10:54 +0800 Subject: [PATCH] Allow water & lava buckets dispensed break nether portals. --- mods/ITEMS/mcl_buckets/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_buckets/init.lua b/mods/ITEMS/mcl_buckets/init.lua index 72677eb96..9e830fd73 100644 --- a/mods/ITEMS/mcl_buckets/init.lua +++ b/mods/ITEMS/mcl_buckets/init.lua @@ -148,7 +148,7 @@ function mcl_buckets.register_liquid(def) end, _on_dispense = function(stack, pos, droppos, dropnode, dropdir) local iname = stack:get_name() - local buildable = minetest.registered_nodes[dropnode.name].buildable_to + local buildable = minetest.registered_nodes[dropnode.name].buildable_to or dropnode.name == "mcl_portals:portal" if def.extra_check and def.extra_check(droppos, nil) == false then -- Fail placement of liquid @@ -277,4 +277,4 @@ minetest.register_craftitem("mcl_buckets:bucket_empty", { end, }) -dofile(modpath.."/register.lua") \ No newline at end of file +dofile(modpath.."/register.lua")