Commit 855d3182 authored by AnimeGitB's avatar AnimeGitB
Browse files

Remove deprecated constructor call

parent 43b7d7a3
...@@ -54,7 +54,7 @@ public class QuestSystem extends BaseGameSystem { ...@@ -54,7 +54,7 @@ public class QuestSystem extends BaseGameSystem {
return; return;
} }
map.put(opcode.value().getValue(), handlerClass.newInstance()); map.put(opcode.value().getValue(), handlerClass.getDeclaredConstructor().newInstance());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment