0
0
Fork 0

Allow water & lava buckets dispensed break nether portals.

This commit is contained in:
iliekprogrammar 2021-03-14 12:10:54 +08:00
parent dd7facfc03
commit 7a5aa54035
1 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ function mcl_buckets.register_liquid(def)
end, end,
_on_dispense = function(stack, pos, droppos, dropnode, dropdir) _on_dispense = function(stack, pos, droppos, dropnode, dropdir)
local iname = stack:get_name() 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 if def.extra_check and def.extra_check(droppos, nil) == false then
-- Fail placement of liquid -- Fail placement of liquid
@ -277,4 +277,4 @@ minetest.register_craftitem("mcl_buckets:bucket_empty", {
end, end,
}) })
dofile(modpath.."/register.lua") dofile(modpath.."/register.lua")