From c54d7e2bbce63c87fbabfb8c15f082468747cf50 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 19 May 2016 22:04:13 +0100 Subject: [PATCH] Correct typo causing war declaring to fail --- ctf/gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctf/gui.lua b/ctf/gui.lua index 1f05595..58a5964 100644 --- a/ctf/gui.lua +++ b/ctf/gui.lua @@ -320,7 +320,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) tname2 = string.match(key, "war_(.+)") if tname2 then - ctf.diplo.set(team, tname2,"war") + ctf.diplo.set(tname, tname2, "war") ctf.post(tname, { msg = "You have declared war on " .. tname2 }) ctf.post(tname2, {