OpenModularTurretsTeam / OMLib

OpenModularLib for OMT, OMPD, and soon OMTControl and OMLighting
MIT License
5 stars 7 forks source link

Error on first world unload #7

Closed joklbash closed 6 years ago

joklbash commented 7 years ago

Server throws this error when unload first time. [09:20:33] [Server thread/INFO]: [STDERR]: java.lang.Exception: Failed to create dir [09:20:33] [Server thread/INFO]: [STDERR]: at omtteam.omlib.handler.OwnerShareHandler.saveToDisk(OwnerShareHandler.java:169) [09:20:33] [Server thread/INFO]: [STDERR]: at omtteam.omlib.handler.EventHandler.worldUnloadEvent(EventHandler.java:33)

Looking at source, should this if (path.toFile().mkdir()) { be if (!path.toFile().mkdir()) { ?

The directory was created, although it threw an exception as if it were not.