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:
parent
b929efc9a6
commit
64f70c2e2c
@ -4,7 +4,7 @@ function HandleItemCommand(Split, Player)
|
|||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
|
|
||||||
local Item = cItem(E_ITEM_EMPTY, 1);
|
local Item = cItem();
|
||||||
local FoundItem = StringToItem(Split[2], Item);
|
local FoundItem = StringToItem(Split[2], Item);
|
||||||
|
|
||||||
if not(IsValidItem(Item.m_ItemType)) then -- StringToItem does not check if item is valid
|
if not(IsValidItem(Item.m_ItemType)) then -- StringToItem does not check if item is valid
|
||||||
|
Loading…
Reference in New Issue
Block a user