Fix knight swords not allowing to open team chest
This commit is contained in:
parent
a51d7cd347
commit
ec0edc15ba
1 changed files with 3 additions and 3 deletions
|
@ -95,13 +95,13 @@ minetest.register_tool("ctf_classes:sword_steel", {
|
||||||
return
|
return
|
||||||
end
|
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
|
if pointed_thing.type == "node" then
|
||||||
return minetest.item_place(itemstack, placer, pointed_thing)
|
return minetest.item_place(itemstack, placer, pointed_thing)
|
||||||
end
|
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[pname] = 20
|
||||||
sword_special_timer_func(pname, 20)
|
sword_special_timer_func(pname, 20)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue