This commit is contained in:
Florian Nücke 2015-02-27 07:06:09 +01:00
parent 046c6f5ec8
commit bd77abe4f9
2 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
minecraft.version=1.8
forge.version=11.14.1.1313
forge.version=11.14.1.1329
oc.version=1.5.2
oc.subversion=dev

View File

@ -195,11 +195,13 @@ object SaveHandler {
@SubscribeEvent(priority = EventPriority.HIGHEST)
def onWorldLoad(e: WorldEvent.Load) {
// Touch all externally saved data when loading, to avoid it getting
// deleted in the next save (because the now - save time will usually
// be larger than the time out after loading a world again).
if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_7)) SaveHandlerJava17Functionality.visitJava17(statePath)
else visitJava16()
if (!e.world.isRemote) {
// Touch all externally saved data when loading, to avoid it getting
// deleted in the next save (because the now - save time will usually
// be larger than the time out after loading a world again).
if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_7)) SaveHandlerJava17Functionality.visitJava17(statePath)
else visitJava16()
}
}
private def visitJava16() {