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