mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
fixed a bug where wires cause quicksave to fail
This commit is contained in:
@@ -373,7 +373,7 @@ open class IngameInstance(val batch: SpriteBatch) : Screen {
|
||||
val flags2 = FileInputStream(file2).let { it.skip(49L); val r = it.read(); it.close(); r }
|
||||
val flags1 = FileInputStream(file1).let { it.skip(49L); val r = it.read(); it.close(); r }
|
||||
|
||||
if (!(flags2 == 0 && flags1 != 0)) {
|
||||
if (!(flags2 == 0 && flags1 != 0) || !file2.exists()) {
|
||||
file1.copyTo(file2, true)
|
||||
}
|
||||
} catch (e: NoSuchFileException) {
|
||||
|
||||
Reference in New Issue
Block a user