From a0cf0d03f44caf7de60367f40409be347734df17 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Fri, 21 Dec 2012 18:54:20 -0600 Subject: [PATCH] Check file existence before determining readOnly. Fixes BUKKIT-3255 --- src/main/java/net/minecraft/server/PropertyManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/PropertyManager.java b/src/main/java/net/minecraft/server/PropertyManager.java index cc5ddc71fb..8c0ef99990 100644 --- a/src/main/java/net/minecraft/server/PropertyManager.java +++ b/src/main/java/net/minecraft/server/PropertyManager.java @@ -70,7 +70,7 @@ public class PropertyManager { try { // CraftBukkit start - Don't attempt writing to file if it's read only - if (!this.c.canWrite()) { + if (this.c.exists() && !this.c.canWrite()) { return; } // CraftBukkit end