From 389b49e43285f8d5525735dfd400ad50bc3a8929 Mon Sep 17 00:00:00 2001
From: Rumen Nikiforov <unafraid89@gmail.com>
Date: Wed, 10 Apr 2013 21:11:28 +0000
Subject: [PATCH] BETA: Fixing some warnings caused by last datapack project
 settings update.

---
 .../data/scripts/handlers/EffectMasterHandler.java     | 10 +++++-----
 .../dist/game/data/scripts/handlers/MasterHandler.java |  9 +++++----
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/EffectMasterHandler.java
index abfcb66ebc..ea5ed04a60 100644
--- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/EffectMasterHandler.java
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/EffectMasterHandler.java
@@ -241,13 +241,13 @@ public final class EffectMasterHandler
 		
 		for (Class<?> c : _effects)
 		{
+			if (c == null)
+			{
+				continue; // Disabled handler
+			}
+			
 			try
 			{
-				if (c == null)
-				{
-					continue; // Disabled handler
-				}
-				
 				if (method == null)
 				{
 					method = loadInstance.getClass().getMethod("registerHandler", Class.class);
diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/MasterHandler.java
index d5615d0a5d..efa46d9f80 100644
--- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/MasterHandler.java
@@ -660,12 +660,13 @@ public class MasterHandler
 			
 			for (Class<?> c : _handlers[i])
 			{
+				if (c == null)
+				{
+					continue; // Disabled handler
+				}
+				
 				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
 					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)
-- 
GitLab