From 408aff5fd2b1fe9380ab3411c3d1a78fd37ea536 Mon Sep 17 00:00:00 2001 From: JKetelaar Date: Mon, 6 Feb 2017 20:37:51 +0100 Subject: [PATCH] [BUGFIX] Solved issue with AbstractMethodError on getLongId Cannot try-catch on AbstractMethodError --- .../java/org/rev317/min/api/wrappers/NpcDef.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/rev317/min/api/wrappers/NpcDef.java b/src/main/java/org/rev317/min/api/wrappers/NpcDef.java index a24f9c6..2364ef0 100644 --- a/src/main/java/org/rev317/min/api/wrappers/NpcDef.java +++ b/src/main/java/org/rev317/min/api/wrappers/NpcDef.java @@ -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(); - } +// } } }