From f0eed1aa220e7cc7d7e95cd09c40eee0273fb915 Mon Sep 17 00:00:00 2001 From: Zino Date: Thu, 8 Aug 2013 18:19:22 +0200 Subject: [PATCH] *fix npc right click, --- src/main/java/me/blackvein/quests/Quest.java | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/main/java/me/blackvein/quests/Quest.java b/src/main/java/me/blackvein/quests/Quest.java index c36ed17ca..edc8e5a90 100644 --- a/src/main/java/me/blackvein/quests/Quest.java +++ b/src/main/java/me/blackvein/quests/Quest.java @@ -280,17 +280,15 @@ public class Quest { }else if(other.blockStart == null && blockStart != null) return false; - for(String s : other.commands){ - - if(commands.size() >= (other.commands.indexOf(s))){ - - if(commands.get(other.commands.indexOf(s)).equals(s) == false) - return false; - - }else{ - return false; - } - + if(commands.size() == other.commands.size()){ + + for (int i = 0; i < commands.size(); i++) { + if (commands.get(i).equals(other.commands.get(i)) == false) + return false; + } + + }else{ + return false; } if(other.description.equals(description) == false)