On Linux and probably other OSes, Circuit Database directory is not a directory
TehSomeLuigi opened this issue ยท 0 comments
Bit of a bad title, but hopefully I can explain to you the issue:
I am using a Linux OS which uses ext3 as a filesystem. In this case, the file seperator is /, not \ as is used in your code. I believe the same would occur on other OSes such as Mac OSX.
I am running my modded Minecraft instance in a custom directory, which I'll call ~/minecraft/1710functional.
The result is that, in ~/minecraft, there is a directory called '1710functional\bluepower\circuitDatabase' and a file called '1710functional\bluepower\circuitDatabase\Boot.cdf'.
The expected result would be a directory 'bluepower' inside 1710functional, etc etc.
Suggested Changes:
in /src/main/java/com/bluepowermod/helper/ItemStackDatabase.java
use File.separator (java.io.File.seperator) instead of the constant "".
However, there may be some consideration required as this will mean Linux users that update to a version with this correction will lose access to their circuits? (I don't positively know, but I'm assuming that would be the case).