Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

GL11.glScale(scaleX, scaleY, scaleZ);

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

GL11.glScalef and glScaled only seem to strech the screen to the direction I amplify the value in(and if I add to the Z value the Item Icons seem to disapper)

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.

  • Author

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.