Check file existence before determining readOnly. Fixes BUKKIT-3255

Dieser Commit ist enthalten in:
feildmaster 2012-12-21 18:54:20 -06:00
Ursprung ec211ed952
Commit a0cf0d03f4

Datei anzeigen

@ -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