mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 03:05:30 -04:00
Fixes #943.
This commit is contained in:
parent
046c6f5ec8
commit
bd77abe4f9
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user