mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Merge pull request 'Allow water & lava buckets dispensed break nether portals.' (#1302) from iliekprogrammar/MineClone2:portal into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1302
This commit is contained in:
commit
53bfda827a
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
dofile(modpath.."/register.lua")
|
||||
|
|
Loading…
Reference in a new issue