summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-17 01:27:50 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-17 01:27:50 +0200
commit813ca0467668a6b15dfc3697ee0d29e1c3865153 (patch)
tree085ac35e2a30e2559b12d3062564f28e34794548
parentMerge pull request #2253 from jammet/patch-7 (diff)
downloadcuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.tar
cuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.tar.gz
cuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.tar.bz2
cuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.tar.lz
cuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.tar.xz
cuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.tar.zst
cuberite-813ca0467668a6b15dfc3697ee0d29e1c3865153.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/HopperEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/HopperEntity.cpp b/src/BlockEntities/HopperEntity.cpp
index 203f47534..662212c4d 100644
--- a/src/BlockEntities/HopperEntity.cpp
+++ b/src/BlockEntities/HopperEntity.cpp
@@ -507,7 +507,7 @@ bool cHopperEntity::MoveItemsFromSlot(cBlockEntityWithItems & a_Entity, int a_Sl
auto PreviousCount = m_Contents.GetSlot(i).m_ItemCount;
m_Contents.ChangeSlotCount(i, 1);
- if (PreviousCount == m_Contents.GetSlot(i).m_ItemCount + 1)
+ if (PreviousCount + 1 == m_Contents.GetSlot(i).m_ItemCount)
{
// Successfully added a new item. (Failure condition consistutes: stack full)
return true;