mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Fix more ItemStack issues
This commit is contained in:
1 parent
cf6a04a65d
commit
6eb8e59f3c
68 files changed
+207
-211
No files matched your search
@@ -180,7 +180,7 @@ public class TileComponentEjector implements ITileComponent
|
||||
{
|
||||
int slotID = sideData.get(TransmissionType.ITEM).availableSlots[index];
|
||||
|
||||
if(tileEntity.getStackInSlot(slotID) == null)
|
||||
if(tileEntity.getStackInSlot(slotID).isEmpty())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -207,12 +207,12 @@ public class TileComponentEjector implements ITileComponent
|
||||
}
|
||||
}
|
||||
|
||||
if(stack == null || prev.getCount() != stack.getCount())
|
||||
if(stack.isEmpty() || prev.getCount() != stack.getCount())
|
||||
{
|
||||
trackers.get(TransmissionType.ITEM)[index] = side.ordinal();
|
||||
}
|
||||
|
||||
if(stack == null)
|
||||
if(stack.isEmpty())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user