Move world-related functions to mcl_worlds
This commit is contained in:
parent
06ef86ddd3
commit
b0c87f74fe
35 changed files with 212 additions and 202 deletions
|
@ -2,7 +2,7 @@ mcl_init
|
|||
mesecons
|
||||
mcl_sounds
|
||||
mcl_tnt
|
||||
mcl_util
|
||||
mcl_worlds
|
||||
mcl_core
|
||||
mcl_nether
|
||||
3d_armor_stand
|
||||
|
|
|
@ -173,7 +173,7 @@ local dispenserdef = {
|
|||
elseif iname == "mcl_buckets:bucket_water" or iname == "mcl_buckets:bucket_lava" then
|
||||
-- Place water/lava source
|
||||
if dropnodedef.buildable_to then
|
||||
local _, dim = mcl_util.y_to_layer(droppos.y)
|
||||
local dim = mcl_worlds.pos_to_dimension(droppos)
|
||||
if iname == "mcl_buckets:bucket_water" then
|
||||
if dim == "nether" then
|
||||
minetest.sound_play("fire_extinguish_flame", {pos = droppos, gain = 0.25, max_hear_distance = 16})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue