Fix knight swords not allowing to open team chest

This commit is contained in:
LoneWolfHT 2020-12-13 11:05:26 -08:00
parent a51d7cd347
commit ec0edc15ba
1 changed files with 3 additions and 3 deletions

View File

@ -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)