From fc2b27abf1028afb1115252d1cf195e74de2b009 Mon Sep 17 00:00:00 2001 From: Anthony Recascino Date: Sat, 30 Jul 2016 00:50:36 -0400 Subject: [PATCH] Fixes --- chatcommands.lua | 1 - factions.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/chatcommands.lua b/chatcommands.lua index cd2320d..a8acefa 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -168,7 +168,6 @@ function factions_chat.cmdhandler(playername,parameter) --if minetest.check_player_privs(playername,{ faction_admin=true }) then --create new faction if cmd == "create" then - minetest.chat_send_player(playername,"dfdsofjdspofndsfjdsp",false) if params[2] ~= nil then if factions.add_faction(params[2]) then minetest.chat_send_player(playername, diff --git a/factions.lua b/factions.lua index b8bd0e8..62964b4 100644 --- a/factions.lua +++ b/factions.lua @@ -324,7 +324,7 @@ function factions.member_remove(name,object) factions.data.objects[id].factions[name] ~= nil then factions.data.objects[id].factions[name] = nil factions.dynamic_data.membertable[name][id] = nil - if factions.data.objects[id].factions[name].owner == object:get_player_name() then + if factions.data.factions[name].owner == object:get_player_name() then factions.delete_faction(name) end factions.save()