Fixes #315
This commit is contained in:
parent
50504a0fe5
commit
27149ed67a
@ -295,6 +295,9 @@ public class LocalSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void loadHistoryNegativeIndex(UUID uuid, World world) {
|
private void loadHistoryNegativeIndex(UUID uuid, World world) {
|
||||||
|
if (!Settings.HISTORY.USE_DISK) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
File file = MainUtil.getFile(Fawe.imp().getDirectory(), Settings.PATHS.HISTORY + File.separator + Fawe.imp().getWorldName(world) + File.separator + uuid + File.separator + "index");
|
File file = MainUtil.getFile(Fawe.imp().getDirectory(), Settings.PATHS.HISTORY + File.separator + Fawe.imp().getWorldName(world) + File.separator + uuid + File.separator + "index");
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
try {
|
try {
|
||||||
@ -310,7 +313,7 @@ public class LocalSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void saveHistoryNegativeIndex(UUID uuid, World world) {
|
private void saveHistoryNegativeIndex(UUID uuid, World world) {
|
||||||
if (world == null) {
|
if (world == null || !Settings.HISTORY.USE_DISK) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
File file = MainUtil.getFile(Fawe.imp().getDirectory(), Settings.PATHS.HISTORY + File.separator + Fawe.imp().getWorldName(world) + File.separator + uuid + File.separator + "index");
|
File file = MainUtil.getFile(Fawe.imp().getDirectory(), Settings.PATHS.HISTORY + File.separator + Fawe.imp().getWorldName(world) + File.separator + uuid + File.separator + "index");
|
||||||
|
Loading…
Reference in New Issue
Block a user