mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-13 22:25:31 +01:00
Check file existence before determining readOnly. Fixes BUKKIT-3255
This commit is contained in:
parent
ec211ed952
commit
a0cf0d03f4
@ -70,7 +70,7 @@ public class PropertyManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// CraftBukkit start - Don't attempt writing to file if it's read only
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Loading…
Reference in New Issue
Block a user