Fix knight swords not allowing to open team chest

master
LoneWolfHT 2 years ago
parent a51d7cd347
commit ec0edc15ba
  1. 6
      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)

Loading…
Cancel
Save