1
0

Core: fixed a warning message when using the /item command

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1600 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-06-16 17:23:01 +00:00
parent b929efc9a6
commit 64f70c2e2c

View File

@ -4,7 +4,7 @@ function HandleItemCommand(Split, Player)
return true;
end
local Item = cItem(E_ITEM_EMPTY, 1);
local Item = cItem();
local FoundItem = StringToItem(Split[2], Item);
if not(IsValidItem(Item.m_ItemType)) then -- StringToItem does not check if item is valid