From 9dd197567be0aca6d25e8652df4273a39a628bd2 Mon Sep 17 00:00:00 2001 From: Frotty Date: Mon, 8 Oct 2018 12:30:43 +0200 Subject: [PATCH] make mpq non-writable if opened in FORCE_V0 but no listfile exists --- src/main/java/systems/crigges/jmpq3/JMpqEditor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/systems/crigges/jmpq3/JMpqEditor.java b/src/main/java/systems/crigges/jmpq3/JMpqEditor.java index 437083b..d54ec68 100644 --- a/src/main/java/systems/crigges/jmpq3/JMpqEditor.java +++ b/src/main/java/systems/crigges/jmpq3/JMpqEditor.java @@ -223,6 +223,7 @@ private void readListFile() { } } else { log.warn("The mpq doesn't contain a listfile. It cannot be rebuild."); + canWrite = false; } }