From 3f73d15a5a777a818df3ed18ae298751caa56d76 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 10 May 2021 00:10:47 +0200 Subject: [PATCH] Commended search for existing LinkedBeaconTeleporterItem (this will lead to more than only 2 linked items) --- .../listener/OnPrepareItemCraftEvent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/listener/OnPrepareItemCraftEvent.java b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/listener/OnPrepareItemCraftEvent.java index ad152ee..68ccf09 100644 --- a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/listener/OnPrepareItemCraftEvent.java +++ b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/listener/OnPrepareItemCraftEvent.java @@ -15,10 +15,11 @@ public class OnPrepareItemCraftEvent { // Check if one of provided items is already LinkedBeaconTeleporterItem and use first if found LinkedBeaconTeleporterItem lbtItem = null; - for (ItemStack item : matrix) { + /*for (ItemStack item : matrix) { + if(item == null) continue; lbtItem = LinkedBeaconTeleporterItem.getFromItemStack(item); if(lbtItem != null) break; - } + }*/ if(lbtItem == null){ // If none is found, create new LinkedBeaconTeleporterItem and set as crafting-result