Common Mistakes: Fix typos
This commit is contained in:
parent
e7575ad735
commit
c98ce6274e
@ -103,9 +103,10 @@ end)
|
|||||||
|
|
||||||
## Set ItemStacks After Changing Them
|
## Set ItemStacks After Changing Them
|
||||||
|
|
||||||
Unlike most of the rest of the API, stacks work on a copy of the data rather than
|
Notice how it's simply called an `ItemStack` in the API, not an `ItemStackRef`,
|
||||||
the stack in the inventory. This means that modifying a stacks won't actually that
|
similar to `InvRef`. This is because an `ItemStack` isn't a reference - it's a
|
||||||
stack in the inventory.
|
copy. Stacks work on a copy of the data rather than the stack in the inventory.
|
||||||
|
This means that modifying a stack won't actually modify that stack in the inventory.
|
||||||
|
|
||||||
Don't do this:
|
Don't do this:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user