mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 16:49:09 +00:00
[BUGFIX] Solved issue with AbstractMethodError on getLongId
Cannot try-catch on AbstractMethodError
This commit is contained in:
@@ -31,15 +31,15 @@ public class NpcDef {
|
||||
if (avoidLong) {
|
||||
return accessor.getId();
|
||||
} else {
|
||||
try {
|
||||
long id = getLongId();
|
||||
if (id > Integer.MAX_VALUE){
|
||||
throw new NoSuchMethodException("This server only supports long ids; change NpcDef#getId to NpcDef#getLongId");
|
||||
}
|
||||
return (int) id;
|
||||
} catch (Exception e) {
|
||||
// try {
|
||||
// long id = getLongId();
|
||||
// if (id > Integer.MAX_VALUE){
|
||||
// throw new NoSuchMethodException("This server only supports long ids; change NpcDef#getId to NpcDef#getLongId");
|
||||
// }
|
||||
// return (int) id;
|
||||
// } catch (Exception e) {
|
||||
return accessor.getId();
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user