Commended search for existing LinkedBeaconTeleporterItem
(this will lead to more than only 2 linked items)
This commit is contained in:
parent
de1c2816a2
commit
3f73d15a5a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user