Mooy1 / InfinityExpansion

An addon for the plugin Slimefun4
GNU General Public License v3.0
21 stars 60 forks source link

NullPointerException on fresh installs #101

Closed TheBusyBiscuit closed 2 years ago

TheBusyBiscuit commented 2 years ago

Description (Required)

Sigh, first time I actually wanted to take a look at IE. Doesn't actually work, pls give refund thx.

No, but in all seriousness: You forgot to check whether the folder exists here: https://github.com/Mooy1/InfinityExpansion/blob/master/src/main/java/io/github/mooy1/infinityexpansion/items/storage/StorageSaveFix.java#L32

Steps to reproduce the Issue (Required)

Create a fresh new paper server and add the IE and Slimefun jars to the /plugins/ directory. Start the server and watch IE not working and throwing a NullPointerException. Restarting the server will work fine, once Slimefun has created the necessary files.

Expected behavior (Required)

I expected IE to properly check for this stuff and work on a fresh installation.

Server Log / Error Report

https://pastebin.com/rmHnUJjd

Environment (Required)