CrystalCraftMC / CrystalSpace

Bringing the unexplored frontier of space to Minecraft
https://crystalcraftmc.com
Mozilla Public License 2.0
4 stars 11 forks source link

Create the schematics/ directory #2

Closed jwflory closed 9 years ago

jwflory commented 9 years ago

Currently, the plugin will not be able to start successfully, as in the SpaceSchematicHandler class, on line 92, there is a call to the schematics/ directory to scan it and see if any schematics have been loaded into the server.

However, whatever code there once was to create this directory is gone, as it throws a NullPointerException whenever the line passes through.

Code is as follows:

List<File> files = Arrays.asList(new File("plugins" + File.separator + "CrystalSpace" + File.separator + "schematics").listFiles());

For now, I am hotfixing this by just manually creating the schematics/ directory… this is lazy and is vital to be fixed before moving forward, but it requires more energy and rest to think about and read about than I currently have.

iffa commented 9 years ago

Code was just commented out for some reason, fix is included in #5

jwflory commented 9 years ago

Thanks for the fix! :)