mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Transition from null stacks to ItemStack.EMPTY
This commit is contained in:
1 parent
fa7b9b49bc
commit
01ab160ff9
100 files changed
+596
-616
No files matched your search
@@ -275,7 +275,7 @@ public abstract class TileEntityMultiblock<T extends SynchronizedData<T>> extend
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int slotID)
|
||||
{
|
||||
return structure != null && getSynchronizedData().getInventory() != null ? getSynchronizedData().getInventory()[slotID] : null;
|
||||
return structure != null && getSynchronizedData().getInventory() != null ? getSynchronizedData().getInventory().get(slotID) : ItemStack.EMPTY;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -283,7 +283,7 @@ public abstract class TileEntityMultiblock<T extends SynchronizedData<T>> extend
|
||||
{
|
||||
if(structure != null && getSynchronizedData().getInventory() != null)
|
||||
{
|
||||
getSynchronizedData().getInventory()[slotID] = itemstack;
|
||||
getSynchronizedData().getInventory().set(slotID, itemstack);
|
||||
|
||||
if(itemstack != null && itemstack.getCount() > getInventoryStackLimit())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user