Hopefully fix a couple of economy integration problems
This commit is contained in:
parent
54ba4473a2
commit
5dc332691b
@ -126,7 +126,7 @@ public class Faction extends Entity implements EconomyParticipator
|
||||
if ( ! Econ.getMethod().createAccount(aid))
|
||||
{
|
||||
P.p.log(Level.SEVERE, "Error creating faction bank account through Register: "+aid);
|
||||
return null;
|
||||
// return null;
|
||||
}
|
||||
MethodAccount acc = Econ.getMethod().getAccount(aid);
|
||||
acc.set(0);
|
||||
|
@ -265,8 +265,11 @@ public class Econ
|
||||
|
||||
for (Faction faction : Factions.i.get())
|
||||
{
|
||||
faction.getAccount().add(faction.money);
|
||||
faction.money = 0;
|
||||
if (faction.money > 0)
|
||||
{
|
||||
faction.getAccount().add(faction.money);
|
||||
faction.money = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user