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