瀏覽代碼

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

Rumen Nikiforov 12 年之前
父節點
當前提交
389b49e432

+ 5 - 5
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);

+ 5 - 4
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)