#1 Fix read.location bug

Đã hợp nhất
kjhammerle đã nhập 1 commit từ seyfahni/master vào [3]s 8 năm trước cách đây

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

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