01-18-2015, 11:16 AM
(This post was last modified: 01-18-2015, 11:20 AM by DiamondToaster.)
I would try that, but I always get errors in the console.
Here's the code I used to replicate it:
Here's the exact console error I get:
Warn [20:15:45] Stack trace:
Warn [20:15:45] [C](-1): Add
Warn [20:15:45] Plugins/MCSmash/hooks.lua(136): (no name)
Warn [20:15:45] Stack trace end
Warn [20:15:45] Error in plugin MCSmash calling function <callback>()
Warn [20:15:45] LUA: Plugins/MCSmash/hooks.lua:136: error in function 'Add'.
argument #1 is 'class cItems'; 'cItems' expected.
Oh never mind, my bad, I just downloaded the latest binary and it fixed itself. I was using a version over a month old.
Here's the code I used to replicate it:
Code:
local items = cItems()
items:Add(E_ITEM_DIAMOND_SWORD, 1, 100)
Here's the exact console error I get:
Warn [20:15:45] Stack trace:
Warn [20:15:45] [C](-1): Add
Warn [20:15:45] Plugins/MCSmash/hooks.lua(136): (no name)
Warn [20:15:45] Stack trace end
Warn [20:15:45] Error in plugin MCSmash calling function <callback>()
Warn [20:15:45] LUA: Plugins/MCSmash/hooks.lua:136: error in function 'Add'.
argument #1 is 'class cItems'; 'cItems' expected.
Oh never mind, my bad, I just downloaded the latest binary and it fixed itself. I was using a version over a month old.