BeansGalaxy / Beans-Backpacks-2

1.20 inventory management mod. Designed to solve inventory clutter and transferring items while belonging in vanilla Minecraft's aesthetic.
MIT License
21 stars 1 forks source link

There is a crash when you open any container #173

Closed Bitcode1134 closed 2 weeks ago

Bitcode1134 commented 2 weeks ago

the error says “ The game crashed whilst rendering screen Error: java.lang.NullPointerException: Cannot invoke com.beansgalaxy.backpacks.data.Traits.getMaxStacks() because the return value of *com.beansgalaxy.backpacks.data.Traits.get(String) is mull Exit Code: -1 “ can you fix this. It happens whenever my friend opens their inventory or any kind of chest.

BeansGalaxy commented 2 weeks ago

Do you have the full log and does your game or the server shut down?

Bitcode1134 commented 2 weeks ago

Just their game shut down and no I do not have the full log

BeansGalaxy commented 2 weeks ago

and is everyone all using v20.1-2.0.1?

Bitcode1134 commented 2 weeks ago

Yes

BeansGalaxy commented 2 weeks ago

Does only crash for your friend or does any who opens the chest crash?

Bitcode1134 commented 2 weeks ago

Only my friend.

BeansGalaxy commented 2 weeks ago

/ban {your friend's username} would fix it...

Bitcode1134 commented 2 weeks ago

The problem is it’s not my server.

BeansGalaxy commented 2 weeks ago

I'm just kidding that would only cause irl problems. I think there might be an issue with the server side of the mod sending the data for the backpacks to their player. Are you on fabric or forge?

Bitcode1134 commented 2 weeks ago

It’s on fabric

BeansGalaxy commented 2 weeks ago

So while going through the code com.beansgalaxy.backpacks.data.Traits.get(String) could only be null if the config wasn't sent over correctly. Now it defaults to the Iron backpacks if it runs into any issues and hopefully will work. I'm uploading v20.1-2.0.2 now and the server shouldn't need to update for it to work

Bitcode1134 commented 2 weeks ago

Ok thx

BeansGalaxy commented 2 weeks ago

20.1-2.0.2 is out now. I also ran into a bug where the backpack would appear empty after placing it and opening it's menu. Somehow that took 4 hours but the server might need an update to fix these issues.