Browse Source

Merge branch 'master' of seyfahni/minecraft-kajetans-mod into master

Kajetan Johannes Hammerle 6 years ago
parent
commit
943b670612
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/main/java/me/km/api/Location.java

+ 2 - 4
src/main/java/me/km/api/Location.java

@@ -82,13 +82,11 @@ public class Location
                 this.pitch = 0;
                 return;
             }
-            sc.getLogger().printException(new IllegalStringLocationException(location), "read.location", sc, sc.getActiveRealCodeLine());
-            throw new HoldCodeException();
+            throw new IllegalStringLocationException(location);
         }
         catch(PatternSyntaxException | NumberFormatException ex)
         {
-            sc.getLogger().printException(new IllegalStringLocationException(location), "read.location", sc, sc.getActiveRealCodeLine());
-            throw new HoldCodeException();
+            throw new IllegalStringLocationException(location);
         }
     }