1
0

Fixed Linux compilation

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1589 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-06-15 08:00:24 +00:00
parent 1e6e39f10a
commit def8f859ba

View File

@ -279,7 +279,8 @@ bool cHopperEntity::MoveItemsFromGrid(cItemGrid & a_Grid)
/// Moves one of the specified itemstack into this hopper. Returns true if contents have changed. Doesn't change the itemstack.
bool cHopperEntity::MoveItemsFromSlot(const cItem & a_ItemStack, bool a_AllowNewStacks)
{
if (m_Contents.AddItem(a_ItemStack.CopyOne(), a_AllowNewStacks) > 0)
cItem One(a_ItemStack.CopyOne());
if (m_Contents.AddItem(One, a_AllowNewStacks) > 0)
{
return true;
}