|
|
@ -15,10 +15,11 @@ public class OnPrepareItemCraftEvent {
|
|
|
|
// Check if one of provided items is already LinkedBeaconTeleporterItem and use first if found
|
|
|
|
// Check if one of provided items is already LinkedBeaconTeleporterItem and use first if found
|
|
|
|
LinkedBeaconTeleporterItem lbtItem = null;
|
|
|
|
LinkedBeaconTeleporterItem lbtItem = null;
|
|
|
|
|
|
|
|
|
|
|
|
for (ItemStack item : matrix) {
|
|
|
|
/*for (ItemStack item : matrix) {
|
|
|
|
|
|
|
|
if(item == null) continue;
|
|
|
|
lbtItem = LinkedBeaconTeleporterItem.getFromItemStack(item);
|
|
|
|
lbtItem = LinkedBeaconTeleporterItem.getFromItemStack(item);
|
|
|
|
if(lbtItem != null) break;
|
|
|
|
if(lbtItem != null) break;
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
if(lbtItem == null){
|
|
|
|
if(lbtItem == null){
|
|
|
|
// If none is found, create new LinkedBeaconTeleporterItem and set as crafting-result
|
|
|
|
// If none is found, create new LinkedBeaconTeleporterItem and set as crafting-result
|
|
|
|