summaryrefslogtreecommitdiffstats
path: root/source/BlockEntities/HopperEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-15 10:00:24 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-15 10:00:24 +0200
commitdef8f859bac7d2256108d728b72c54915d3b6f1b (patch)
tree43532420cad613a20269ebf57f7f207c48fe73c6 /source/BlockEntities/HopperEntity.cpp
parentAdded the option of saving all the chunks of a world using the webadmin. (diff)
downloadcuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.tar
cuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.tar.gz
cuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.tar.bz2
cuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.tar.lz
cuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.tar.xz
cuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.tar.zst
cuberite-def8f859bac7d2256108d728b72c54915d3b6f1b.zip
Diffstat (limited to '')
-rw-r--r--source/BlockEntities/HopperEntity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/BlockEntities/HopperEntity.cpp b/source/BlockEntities/HopperEntity.cpp
index 68974fdd3..fb2e36aa3 100644
--- a/source/BlockEntities/HopperEntity.cpp
+++ b/source/BlockEntities/HopperEntity.cpp
@@ -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;
}