Removing debug code thats no longer required.
This commit is contained in:
parent
a85e0eccdf
commit
2172ef79c8
@ -29,35 +29,8 @@ public class PlayerRoleComparator implements Comparator<UPlayer>
|
||||
if (ret != 0) return ret;
|
||||
|
||||
// Rank
|
||||
// TODO: This error output is temporary. I need a way to detect what is going wrong.
|
||||
Rel r1 = null;
|
||||
Rel r2 = null;
|
||||
try
|
||||
{
|
||||
r1 = o1.getRole();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("Could not get role for o1: " + o1.getId());
|
||||
System.out.println("universe o1: " + o1.getUniverse());
|
||||
System.out.println("attached o1: " + o1.attached());
|
||||
System.out.println("Now dumping the data o1: " + Factions.get().gson.toJson(o1));
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
r2 = o2.getRole();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("Could not get role for o2: " + o2.getId());
|
||||
System.out.println("universe o2: " + o2.getUniverse());
|
||||
System.out.println("attached o2: " + o2.attached());
|
||||
System.out.println("Now dumping the data o2: " + Factions.get().gson.toJson(o2));
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Rel r1 = o1.getRole();
|
||||
Rel r2 = o2.getRole();
|
||||
return r2.getValue() - r1.getValue();
|
||||
}
|
||||
|
||||
|
@ -412,20 +412,9 @@ public class UPlayer extends SenderEntity<UPlayer> implements EconomyParticipato
|
||||
// MIXIN: FINER
|
||||
|
||||
public double getLimitedPower(double power)
|
||||
{
|
||||
try
|
||||
{
|
||||
power = Math.max(power, this.getPowerMin());
|
||||
power = Math.min(power, this.getPowerMax());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.out.println("Could not limit power for this: " + this.getId());
|
||||
System.out.println("universe this: " + this.getUniverse());
|
||||
System.out.println("attached this: " + this.attached());
|
||||
System.out.println("Now dumping the data this: " + Factions.get().gson.toJson(this));
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return power;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user