diff options
Diffstat (limited to '')
-rw-r--r-- | src/subconscious/MapLoader.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/subconscious/MapLoader.java b/src/subconscious/MapLoader.java index 2233a8d..2bc320c 100644 --- a/src/subconscious/MapLoader.java +++ b/src/subconscious/MapLoader.java @@ -18,12 +18,12 @@ import com.google.gson.Gson; public class MapLoader { File path; - public MapLoader(Object path) { - if (path instanceof java.io.File) { - this.path = (File) path; - } else { - this.path = new File((String) path); - } + public MapLoader(String path) { + this.path = new File(path); + } + + public MapLoader(File file) { + this.path = file; } public Map getMap() { |