Move world-related functions to mcl_worlds

This commit is contained in:
Wuzzy 2017-11-24 03:10:02 +01:00
parent 06ef86ddd3
commit b0c87f74fe
35 changed files with 212 additions and 202 deletions

View file

@ -2,7 +2,7 @@ mcl_init
mesecons
mcl_sounds
mcl_tnt
mcl_util
mcl_worlds
mcl_core
mcl_nether
3d_armor_stand

View file

@ -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})