summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-12-21 18:54:20 -0600
committerfeildmaster <admin@feildmaster.com>2012-12-21 19:31:39 -0600
commita0cf0d03f44caf7de60367f40409be347734df17 (patch)
tree25b102d90075cb427dda4d60c5eea6b66d59ac52 /src/main/java/net/minecraft/server
parentec211ed952173ac0be311afbb216471998532038 (diff)
downloadcraftbukkit-a0cf0d03f44caf7de60367f40409be347734df17.tar
craftbukkit-a0cf0d03f44caf7de60367f40409be347734df17.tar.gz
craftbukkit-a0cf0d03f44caf7de60367f40409be347734df17.tar.lz
craftbukkit-a0cf0d03f44caf7de60367f40409be347734df17.tar.xz
craftbukkit-a0cf0d03f44caf7de60367f40409be347734df17.zip
Check file existence before determining readOnly. Fixes BUKKIT-3255
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/PropertyManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PropertyManager.java b/src/main/java/net/minecraft/server/PropertyManager.java
index cc5ddc71..8c0ef999 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