diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-04 13:54:44 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-04 13:54:44 +0200 |
commit | dcc3af0704f63caefd39d8488f8c6ff28c208bfd (patch) | |
tree | db55bd48c83bc55d37f80a8a108beabbb938ec1c /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | ItemGrid: fixed changing item count when ToRemove == CurrentCount (diff) | |
download | cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.gz cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.bz2 cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.lz cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.xz cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.zst cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers/Debuggers.lua')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index 1d441d8fb..55a954f47 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -597,9 +597,9 @@ function HandleTestWndCmd(a_Split, a_Player) local Item2 = cItem(E_ITEM_DIAMOND_SWORD, 1, 0, "1=1");
local Item3 = cItem(E_ITEM_DIAMOND_SHOVEL);
Item3.m_Enchantments:SetLevel(cEnchantments.enchUnbreaking, 4);
- local Item4 = cItem(E_ITEM_DIAMOND_PICKAXE);
- Item4.m_Enchantments:SetLevel(cEnchantments.enchUnbreaking, 5);
- Item4.m_Enchantments:SetLevel(cEnchantments.enchEfficiency, 3);
+ local Item4 = cItem(Item3); -- Copy
+ Item4.m_Enchantments:SetLevel(cEnchantments.enchEfficiency, 3); -- Add enchantment
+ Item4.m_Enchantments:SetLevel(cEnchantments.enchUnbreaking, 5); -- Overwrite existing level
local Item5 = cItem(E_ITEM_DIAMOND_CHESTPLATE, 1, 0, "thorns=1;unbreaking=3");
Window:SetSlot(a_Player, 0, cItem(E_ITEM_DIAMOND, 64));
Window:SetSlot(a_Player, 1, Item2);
|