Skip to content

Commit

Permalink
feat(slots): fix extension to use new method name
Browse files Browse the repository at this point in the history
  • Loading branch information
NaolShow committed Jun 24, 2023
1 parent b0247e8 commit 6de420a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Sacados/Extensions/ISlotExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public static uint GetSpace(this ISlot slot, ItemStack itemStack) {

// If the slot's ItemStack is empty then it's the max stack size
if (slotItemStack.IsEmpty())
space = slot.GetMaxStackSize(itemStack);
space = slot.GetMaximumSpace(itemStack);
// If the ItemStacks are the same then it's the max stack size decreased by the current stack size
else if (slotItemStack.IsSameAs(itemStack))
space = slot.GetMaxStackSize(itemStack) - slotItemStack.StackSize;
space = slot.GetMaximumSpace(itemStack) - slotItemStack.StackSize;

}
return space;
Expand Down

0 comments on commit 6de420a

Please sign in to comment.