1
0
Fork 0

Merge pull request 'Fix warnings in mcl_bells and mcl_beds' (#2243) from EliasFleckenstein03/MineClone2:warn into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2243
mobs_head_rotation
cora 2022-05-25 17:54:28 +00:00
commit d3afccad64
2 changed files with 5 additions and 2 deletions

View File

@ -57,6 +57,7 @@ for i=0,4 do
groups = {pickaxey=1, material_stone=1}, groups = {pickaxey=1, material_stone=1},
_mcl_hardness = 22.5, _mcl_hardness = 22.5,
sounds= mcl_sounds.node_sound_stone_defaults(), sounds= mcl_sounds.node_sound_stone_defaults(),
use_texture_alpha = "blend",
}) })
mesecon.register_mvps_stopper("mcl_beds:respawn_anchor") mesecon.register_mvps_stopper("mcl_beds:respawn_anchor")
else else
@ -79,7 +80,8 @@ for i=0,4 do
{items = {"mcl_beds:respawn_anchor"}}, {items = {"mcl_beds:respawn_anchor"}},
} }
}, },
light_source = (4 * i) - 1 light_source = math.min((4 * i) - 1, minetest.LIGHT_MAX),
use_texture_alpha = "blend",
}) })
mesecon.register_mvps_stopper("mcl_beds:respawn_anchor_charged_"..i) mesecon.register_mvps_stopper("mcl_beds:respawn_anchor_charged_"..i)
end end

View File

@ -38,6 +38,7 @@ minetest.register_node("mcl_bells:bell", {
_mcl_blast_resistance = 6, _mcl_blast_resistance = 6,
_mcl_hardness = 5, _mcl_hardness = 5,
on_rightclick = mcl_bells.ring_once, on_rightclick = mcl_bells.ring_once,
use_texture_alpha = "clip",
}) })
if has_mcl_wip then if has_mcl_wip then