diff --git a/mods/ctf/ctf_classes/melee.lua b/mods/ctf/ctf_classes/melee.lua index 6177263..710c3ee 100644 --- a/mods/ctf/ctf_classes/melee.lua +++ b/mods/ctf/ctf_classes/melee.lua @@ -95,13 +95,13 @@ minetest.register_tool("ctf_classes:sword_steel", { return end - -- Check if player is sneaking before placing marker - if not placer:get_player_control().sneak then return end - if pointed_thing.type == "node" then return minetest.item_place(itemstack, placer, pointed_thing) end + -- Check if player is sneaking before placing marker + if not placer:get_player_control().sneak then return end + sword_special_timer[pname] = 20 sword_special_timer_func(pname, 20)