Skip to content
Snippets Groups Projects
Commit 389b49e4 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Fixing some warnings caused by last datapack project settings update.

parent 7ee3d49f
No related branches found
No related tags found
No related merge requests found
...@@ -241,13 +241,13 @@ public final class EffectMasterHandler ...@@ -241,13 +241,13 @@ public final class EffectMasterHandler
for (Class<?> c : _effects) for (Class<?> c : _effects)
{ {
if (c == null)
{
continue; // Disabled handler
}
try try
{ {
if (c == null)
{
continue; // Disabled handler
}
if (method == null) if (method == null)
{ {
method = loadInstance.getClass().getMethod("registerHandler", Class.class); method = loadInstance.getClass().getMethod("registerHandler", Class.class);
......
...@@ -660,12 +660,13 @@ public class MasterHandler ...@@ -660,12 +660,13 @@ public class MasterHandler
for (Class<?> c : _handlers[i]) for (Class<?> c : _handlers[i])
{ {
if (c == null)
{
continue; // Disabled handler
}
try try
{ {
if (c == null)
{
continue; // Disabled handler
}
// Don't wtf some classes extending another like ItemHandler, Elixir, etc.. and we need to find where the hell is interface xD // Don't wtf some classes extending another like ItemHandler, Elixir, etc.. and we need to find where the hell is interface xD
interfaces = c.getInterfaces().length > 0 ? // Standardly handler has implementation interfaces = c.getInterfaces().length > 0 ? // Standardly handler has implementation
c.getInterfaces() : c.getSuperclass().getInterfaces().length > 0 ? // No? then it extends another handler like (ItemSkills->ItemSkillsTemplate) c.getInterfaces() : c.getSuperclass().getInterfaces().length > 0 ? // No? then it extends another handler like (ItemSkills->ItemSkillsTemplate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment