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

Posted

Hi!

 

I have tried running server with just Forge but players on the server get this error when breaking/picking up a pumpkin :o This error also appears immediately when they try to reconnect (they have pumpkin in their inventory).

 

What's happening?

 

 

[WARNING] Failed to handle packet for Joonas612/25.114.116.215: java.lang.ArrayIndexOutOfBoundsException: 4

java.lang.ArrayIndexOutOfBoundsException: 4

at qx.b(EntityPlayer.java:2277)

at md.c(EntityLiving.java:1914)

at qx.c(EntityPlayer.java:560)

at md.j_(EntityLiving.java:843)

at qx.j_(EntityPlayer.java:328)

at iq.g(EntityPlayerMP.java:286)

at iv.a(NetServerHandler.java:310)

at eb.a(SourceFile:136)

at cg.b(TcpConnection.java:458)

at iv.d(NetServerHandler.java:136)

at iw.b(NetworkListenThread.java:57)

at ht.b(SourceFile:30)

at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:703)

at ho.r(DedicatedServer.java:269)

at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:599)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)

at fy.run(SourceFile:849)

 

 

Forge version?

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

Actually looking into this this appears to be a vanilla bug, not exactly sure how you're getting it as it requires a fairly convaluted set of conditions to be in place...

 

If you're able to write down a step-by-step to reproduce we can take a look. However, i'd just kill the user's inventory and call it good.

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

  • Author

Deleted the player .dat file and after that joining and playing works normally. Must be some random corruption in the .dat file.

  • 2 weeks later...

Hi, i just had experienced the same problem. This issue usually comes from using a bukkit world in a vanilla server.

 

See this bug report: 

https://mojang.atlassian.net/browse/MC-4560

 

Bukkit sets the NBT value of "CanPickUpLoot" to 1. This value triggers some strange behaviour in a vanilla server:

 

  • Whenever you pick up an item you don't have already in your inventory it will be "equipped" into your boots slot.
  • When you pick up boots they will go into the trousers slot.
  • When you pick up trousers they will go into the chest plate slot.
  • When you pickup a chest plate it will go into your helmet slot.
  • When you pick up a helmet the game crashes because it tries to equip it in the next slot which doesn't exist. That's why an ArrayIndexOutOfBoundsException is thrown.

 

Since a pumpkin can be used as helment it crashes the game when you pick it up.

 

Just wanted to clear this up. It is actually a bug in the vanilla server which is caused by worlds created / played with bukkit and has nothing to do with Forge. I fixed my issue by using NBTExplorer and changed CanPickUpLoot back to 0

fixed

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.