From c98ce6274eb88818e02b3cbd3d7facde13f73b37 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 12 Apr 2018 01:06:07 +0100 Subject: [PATCH] Common Mistakes: Fix typos --- en/chapters/common_mistakes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/en/chapters/common_mistakes.md b/en/chapters/common_mistakes.md index 7f2454b..650a529 100644 --- a/en/chapters/common_mistakes.md +++ b/en/chapters/common_mistakes.md @@ -103,9 +103,10 @@ end) ## Set ItemStacks After Changing Them -Unlike most of the rest of the API, stacks work on a copy of the data rather than -the stack in the inventory. This means that modifying a stacks won't actually that -stack in the inventory. +Notice how it's simply called an `ItemStack` in the API, not an `ItemStackRef`, +similar to `InvRef`. This is because an `ItemStack` isn't a reference - it's a +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: