fix formatting of the robot position in the debugger

This commit is contained in:
Hea3veN 2015-04-03 12:44:50 -03:00
parent 5ad693bea8
commit 542add1ff7

View file

@ -1141,7 +1141,7 @@ public class EntityRobot extends EntityRobotBase implements
@Override @Override
public void getDebugInfo(List<String> info, ForgeDirection side, ItemStack debugger, EntityPlayer player) { public void getDebugInfo(List<String> info, ForgeDirection side, ItemStack debugger, EntityPlayer player) {
info.add("Robot " + board.getNBTHandler().getID() + " (" + getBattery().getEnergyStored() + "/" + getBattery().getMaxEnergyStored() + " RF)"); info.add("Robot " + board.getNBTHandler().getID() + " (" + getBattery().getEnergyStored() + "/" + getBattery().getMaxEnergyStored() + " RF)");
info.add("Position: " + posX + ", " + posY + ", " + posZ); info.add(String.format("Position: %.2f, %.2f, %.2f", posX, posY, posZ));
info.add("AI tree:"); info.add("AI tree:");
AIRobot aiRobot = mainAI; AIRobot aiRobot = mainAI;
while (aiRobot != null) { while (aiRobot != null) {