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,12 +195,14 @@ object SaveHandler {
@SubscribeEvent(priority = EventPriority.HIGHEST) @SubscribeEvent(priority = EventPriority.HIGHEST)
def onWorldLoad(e: WorldEvent.Load) { def onWorldLoad(e: WorldEvent.Load) {
if (!e.world.isRemote) {
// Touch all externally saved data when loading, to avoid it getting // Touch all externally saved data when loading, to avoid it getting
// deleted in the next save (because the now - save time will usually // deleted in the next save (because the now - save time will usually
// be larger than the time out after loading a world again). // be larger than the time out after loading a world again).
if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_7)) SaveHandlerJava17Functionality.visitJava17(statePath) if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_7)) SaveHandlerJava17Functionality.visitJava17(statePath)
else visitJava16() else visitJava16()
} }
}
private def visitJava16() { private def visitJava16() {
// This may run into infinite loops if there are evil symlinks. // This may run into infinite loops if there are evil symlinks.