Update inventories.md
inv.get_size is a method so should be called with ":"
This commit is contained in:
parent
0b71965a6a
commit
bffaa74d37
@ -191,7 +191,7 @@ because the code behind the window determines the width to use.
|
|||||||
```lua
|
```lua
|
||||||
if inv:set_size("main", 32) then
|
if inv:set_size("main", 32) then
|
||||||
inv:set_width("main", 8)
|
inv:set_width("main", 8)
|
||||||
print("size: " .. inv.get_size("main"))
|
print("size: " .. inv:get_size("main"))
|
||||||
print("width: " .. inv:get_width("main"))
|
print("width: " .. inv:get_width("main"))
|
||||||
else
|
else
|
||||||
print("Error! Invalid itemname or size to set_size()")
|
print("Error! Invalid itemname or size to set_size()")
|
||||||
|
Loading…
Reference in New Issue
Block a user