From ff5f96aa7857ce31f276f0e75a3355a1937a5f4e Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Thu, 13 Jan 2011 15:33:30 +0100 Subject: [PATCH] Small fix for loadColorSet. --- src/main/java/org/dynmap/kzedmap/KzedMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/dynmap/kzedmap/KzedMap.java b/src/main/java/org/dynmap/kzedmap/KzedMap.java index 7adef8e4..c2960cf3 100644 --- a/src/main/java/org/dynmap/kzedmap/KzedMap.java +++ b/src/main/java/org/dynmap/kzedmap/KzedMap.java @@ -325,7 +325,7 @@ public class KzedMap extends Map { try { /* load colorset */ File cfile = new File(colorsetpath); - if (cfile.exists()) { + if (cfile.isFile()) { stream = new FileInputStream(cfile); } else { stream = KzedMap.class.getResourceAsStream("/colors.txt");