mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix hbmpollution.dat file on Crucible and probably Thermos
This commit is contained in:
parent
f912e572f7
commit
cb0eb4271b
@ -153,8 +153,10 @@ public class PollutionHandler {
|
|||||||
|
|
||||||
public String getDataDir(WorldServer world) {
|
public String getDataDir(WorldServer world) {
|
||||||
String dir = world.getSaveHandler().getWorldDirectory().getAbsolutePath();
|
String dir = world.getSaveHandler().getWorldDirectory().getAbsolutePath();
|
||||||
if(world.provider.dimensionId != 0) {
|
// Crucible and probably Thermos provide dimId by themselves
|
||||||
dir += File.separator + "DIM" + world.provider.dimensionId;
|
String dimId = File.separator + "DIM" + world.provider.dimensionId;
|
||||||
|
if(world.provider.dimensionId != 0 && !dir.endsWith(dimId)) {
|
||||||
|
dir += dimId;
|
||||||
}
|
}
|
||||||
dir += File.separator + "data";
|
dir += File.separator + "data";
|
||||||
return dir;
|
return dir;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user