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.

(1.9) Possible bug dealing with onPlayerDestroyItem

Featured Replies

Posted

Hello.

 

To keep a long story short, I recently installed the Backpacks! mod by Brad16840 for Minecraft version 1.9. Installation, usage, and compatability with my other mods was fine, but the mod's auto-renewel system was not working. I contacted the mod owner, and he/she had this to say:

 

It works in 1.8.9 for all items, but with the new dual wielding introduced in 1.9 it seems a Forge dev has forgotten to call the onPlayerDestroyItem event when an item is destroyed in the EntityPlayer.interact method or in the EntityPlayer.attackTargetEntityWithCurrentItem method so my mod (and any mod that listens for that event) aren't being told anything.

 

So its a bug in Forge 1.9, I'd suggest you submit a bug report to Forge saying that the onPlayerDestroyItem event isn't being triggered in EntityPlayer.interact or in EntityPlayer.attackTargetEntityWithCurrentItem.

(Source: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1291844-backpacks-by-brad16840?page=25#c502 on pg. 25 under my username).

 

If Forge developers could look into this, that be great, thank you.

 

Additional info about my Minecraft game:

 

-Version: 1.9

-Forge version: 1.9-12.16.1.1907

Mods installed (all for 1.9): FastLadder; Better HUD; GuideBook; Lux lighting; ModUtilsLib (compliments another mod); Optifine (1.9.0_HD_U_B3); Pam's Harvestcraft; SoundFilters; Backpacks! by Brad16840

-No crash reports, as the mod's never crashed my game.

Its typically the modder's responsibility to report bugs to us because they are the ones who know the most about it and can provide the actual code context.

But whatever.

https://github.com/MinecraftForge/MinecraftForge/commit/6b8466778e23226e686bcd0c83769804541eac49

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Its typically the modder's responsibility to report bugs to us because they are the ones who know the most about it and can provide the actual code context.

But whatever.

https://github.com/MinecraftForge/MinecraftForge/commit/6b8466778e23226e686bcd0c83769804541eac49

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.