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 minecraft.version=1.8
forge.version=11.14.1.1313 forge.version=11.14.1.1329
oc.version=1.5.2 oc.version=1.5.2
oc.subversion=dev oc.subversion=dev

View File

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