Fixed Weylyn’s crash

This commit is contained in:
Aidan Brady 2014-01-31 16:42:35 -05:00
parent 5c976f1b3c
commit 0f841bad93

View file

@ -107,11 +107,12 @@ public class GuiRobitMain extends GuiMekanism
if(!displayNameChange)
{
CharSequence owner = robit.getOwnerName().length() > 14 ? robit.getOwnerName().subSequence(0, 14) : robit.getOwnerName();
fontRenderer.drawString(MekanismUtils.localize("gui.robit.greeting") + " " + robit.getTranslatedEntityName() + "!", 29, 18, 0x00CD00);
fontRenderer.drawString("Energy: " + MekanismUtils.getEnergyDisplay(robit.getEnergy()), 29, 36-4, 0x00CD00);
fontRenderer.drawString("Following: " + robit.getFollowing(), 29, 45-4, 0x00CD00);
fontRenderer.drawString("Drop pickup: " + robit.getDropPickup(), 29, 54-4, 0x00CD00);
fontRenderer.drawString("Owner: " + robit.getOwnerName().subSequence(0, 14), 29, 63-4, 0x00CD00);
fontRenderer.drawString("Owner: " + owner, 29, 63-4, 0x00CD00);
}
int xAxis = (mouseX - (width - xSize) / 2);