Skip to content

Commit

Permalink
Revise `loadMap()' method
Browse files Browse the repository at this point in the history
File Extension `.map'
  • Loading branch information
jubin-park committed Feb 6, 2019
1 parent f908e34 commit d00b5db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified Server/bin/game/Map.class
Binary file not shown.
4 changes: 3 additions & 1 deletion Server/src/game/Map.java
Expand Up @@ -55,7 +55,9 @@ public static void loadMap() {

if (listFiles.length > 0) {
for (File file : listFiles) {
if (file.isFile()) {
String name = file.getName();
String ext = name.substring(name.length() - 4);
if (file.isFile() && ext.equals(".map")) {
new Map(file.getPath());
}
}
Expand Down

0 comments on commit d00b5db

Please sign in to comment.