Remove possible power exploit.

Players could join and leave a faction to regen power.
This commit is contained in:
Coder12a 2018-10-22 16:22:22 -05:00
parent f5c050e240
commit 76edf920fa

View File

@ -208,7 +208,7 @@ function factions.Faction.add_player(self, player, rank)
end
if notsame then
self:increase_maxpower(factions_config.powermax_per_player)
self:increase_power(factions_config.power_per_player)
--self:increase_power(factions_config.power_per_player)
end
end
local pdata = minetest.get_player_by_name(player)