From c7f1718b86ed69fae98ff2bfdbf76a5dcf2c53eb Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Mon, 22 Aug 2022 22:54:03 -0600 Subject: [PATCH] used the wrong drop method --- df_underworld_items/puzzle_seal.lua | 11 ++++++++--- df_underworld_items/slade_drill.lua | 5 +---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/df_underworld_items/puzzle_seal.lua b/df_underworld_items/puzzle_seal.lua index 90e853a..1c224e5 100644 --- a/df_underworld_items/puzzle_seal.lua +++ b/df_underworld_items/puzzle_seal.lua @@ -356,9 +356,12 @@ local digging_seal_def = { }) if minetest.get_item_group(below_node.name, "slade") == 0 then - tnt_boom({x=pos.x, y=pos.y-2, z=pos.z}, {radius=3}) if df_underworld_items.config.enable_slade_drill then - minetest.item_drop("df_underworld_items:slade_drill", nil, pos) + minetest.set_node(pos, {name="air"}) + if tnt_boom then + tnt_boom({x=pos.x, y=pos.y-2, z=pos.z}, {radius=3}) + end + minetest.add_item(pos, "df_underworld_items:slade_drill") else minetest.set_node(pos, {name=lava_source}) end @@ -379,7 +382,9 @@ local digging_seal_def = { minetest.place_schematic({x=pos.x-3, y=pos.y-2, z=pos.z-3}, df_underworld_items.seal_stair_schem, 270, {}, true) node.param2 = 0 else - tnt_boom(pos, {radius=3}) + if tnt_boom then + tnt_boom(pos, {radius=3}) + end minetest.set_node(pos, {name=lava_source}) return end diff --git a/df_underworld_items/slade_drill.lua b/df_underworld_items/slade_drill.lua index 4dd9c26..1a701a7 100644 --- a/df_underworld_items/slade_drill.lua +++ b/df_underworld_items/slade_drill.lua @@ -40,11 +40,8 @@ local slade_drill_def = { light_source = minetest.LIGHT_MAX, description = S("Slade Drill"), inventory_image = "dfcaverns_slade_drill.png", - is_ground_content = false, - groups = {cracky=3, stone=1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1,creative_breakable=1, building_block=1, material_stone=1}, + groups = {cracky=3, stone=1, slade=1, pit_plasma_resistant=1, mese_radiation_shield=1,creative_breakable=1, material_stone=1}, sounds = df_dependencies.sound_stone({ footstep = { name = "bedrock2_step", gain = 1 } }), - paramtype = "light", - sunlight_propagates = true, _mcl_blast_resistance = 8, _mcl_hardness = 5, on_use = function(itemstack, user, pointed_thing)