From 4444437f9431d5ee004dbb2b13f7a4fb045b80a9 Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Sat, 2 Apr 2022 12:28:16 +0000 Subject: [PATCH] Update 'mods/ITEMS/mcl_beds/respawn_anchor.lua' --- mods/ITEMS/mcl_beds/respawn_anchor.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_beds/respawn_anchor.lua b/mods/ITEMS/mcl_beds/respawn_anchor.lua index eded3d7f6..5f279abd7 100644 --- a/mods/ITEMS/mcl_beds/respawn_anchor.lua +++ b/mods/ITEMS/mcl_beds/respawn_anchor.lua @@ -25,10 +25,11 @@ minetest.register_node("mcl_beds:respawn_anchor",{ on_rightclick = function(pos, node, player, itemstack) if itemstack.get_name(itemstack) == "mcl_nether:glowstone" then minetest.set_node(pos, {name="mcl_beds:respawn_anchor_charged_1"}) - itemstack:take_item() - else + itemstack:take_item() + else if pos.y < -29077 or pos.y > -28933 then - mcl_explosions.explode(pos, 5, {drop_chance = 0, fire = true}) + mcl_explosions.explode(pos, 5, {drop_chance = 0, fire = true}) + end end end, groups = {pickaxey=1, material_stone=1},