Merge pull request #74 from Parabot/bugfix/AbstractMethodError-getLongId

[BUGFIX] Solved issue with AbstractMethodError on getLongId
This commit is contained in:
Jeroen Ketelaar
2017-02-06 20:41:10 +01:00
committed by GitHub
@@ -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();
}
// }
}
}