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.

tezuni

Members
  • Joined

  • Last visited

  1. I attached the IntelliJ debugger to my client and set a breakpoint on: Item heldItem = player.getHeldItem().getItem(); It reported to me that isRemote did not exist. Other data reported by the debugger was correct so I have no suspicions that this is an issue with my debugger / jvm. Additionally note that I am building on forge 10.13.4.1492 for MC 1.7.10 Edit: Attached is a screenshot of debugger watches. As you can see I have a valid world object. To my knowledge this shouldn't have compiled, which leads me to believe the problem is rooted elsewhere.
  2. Title is pretty explanatory. Debugging a crash related to spawning an item revealed that my World object has no isRemote member. Stack trace for crash Code @Override public boolean onBlockActivated(World world, int parX, int parY, int parZ, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) { Item heldItem = player.getHeldItem().getItem(); if( (PollenScoopItem) heldItem != null && !world.isRemote ) // Debugger tells me that world doesnt have a "isRemote" member { PollenItem pollenItem = new PollenItem(); pollenItem.setGenetics( ( (PlantTileEntity) world.getTileEntity(parX, parY, parZ) ).geneticMaterial ); EntityItem pollen = new EntityItem(world, parX, parY, parZ, new ItemStack( pollenItem, 1)); world.spawnEntityInWorld(pollen); } return false; } Pretty sure this has nothing to do with a broken world object or anything crazy like that, I most likely haven't sided things correctly. Thanks, Tez

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.