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