Fixed Linux compilation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1589 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
1e6e39f10a
commit
def8f859ba
@ -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.
|
/// 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)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user