From c26c224b9eb63016ca81f9479a2b6340c377c7c9 Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Mon, 14 Oct 2013 17:53:24 +0200 Subject: [PATCH] Fixed Interact Signs --- src/com/dre/dungeonsxl/trigger/InteractTrigger.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/com/dre/dungeonsxl/trigger/InteractTrigger.java b/src/com/dre/dungeonsxl/trigger/InteractTrigger.java index 7df452a0..5da0bc8e 100644 --- a/src/com/dre/dungeonsxl/trigger/InteractTrigger.java +++ b/src/com/dre/dungeonsxl/trigger/InteractTrigger.java @@ -77,10 +77,12 @@ public class InteractTrigger extends Trigger { } public static InteractTrigger get(int id, GameWorld gworld) { - if (hasTriggers(gworld)) { - for (InteractTrigger trigger : triggers.get(gworld)) { - if (trigger.interactId == id) { - return trigger; + if (id != 0) { + if (hasTriggers(gworld)) { + for (InteractTrigger trigger : triggers.get(gworld)) { + if (trigger.interactId == id) { + return trigger; + } } } }