tutorial:inventory
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:inventory [2022/01/30 03:38] – Corrected Error in Example Code outercloudstudio | tutorial:inventory [2022/07/19 02:44] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 103: | Line 103: | ||
default void setStack(int slot, ItemStack stack) { | default void setStack(int slot, ItemStack stack) { | ||
getItems().set(slot, | getItems().set(slot, | ||
- | if (stack.getCount() > getMaxCountPerStack()) { | + | if (stack.getCount() > stack.getMaxCount()) { |
- | stack.setCount(getMaxCountPerStack()); | + | stack.setCount(stack.getMaxCount()); |
} | } | ||
} | } |
tutorial/inventory.txt · Last modified: 2023/11/06 23:28 by binaris00