Jump to content

[UNSOLVED]In game overlay text drawing size


mickey695

Recommended Posts

Plus I get a NullPointerException when the player is removeing armor/not wearing it.

 

 

mc is a Minecraft instance, it is not Null.


if(mc.thePlayer.inventory.armorInventory[0].getItem() == FreemanMod.freemanBoots && mc.thePlayer.inventory.armorInventory[1].getItem() == FreemanMod.freemanLeggins && mc.thePlayer.inventory.armorInventory[2].getItem() == FreemanMod.freemanChestplate && mc.thePlayer.inventory.armorInventory[3].getItem() == FreemanMod.freemanHelmet){

There are so many things there that could be null. Split each field up into its own line and see which line it crashes at.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Plus I get a NullPointerException when the player is removeing armor/not wearing it.

 

 

mc is a Minecraft instance, it is not Null.


if(mc.thePlayer.inventory.armorInventory[0].getItem() == FreemanMod.freemanBoots && mc.thePlayer.inventory.armorInventory[1].getItem() == FreemanMod.freemanLeggins && mc.thePlayer.inventory.armorInventory[2].getItem() == FreemanMod.freemanChestplate && mc.thePlayer.inventory.armorInventory[3].getItem() == FreemanMod.freemanHelmet){

There are so many things there that could be null. Split each field up into its own line and see which line it crashes at.

 

I already solved that, sorry for not removeing it from the title and post(The .getItem would crash it if the ItemStack was null, fixed it by first checking if it's null). But I still would like to be able to increase the size of the text I'm drawing on screen.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.