diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-06-17 01:27:50 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-06-17 01:27:50 +0200 |
commit | 813ca0467668a6b15dfc3697ee0d29e1c3865153 (patch) | |
tree | 085ac35e2a30e2559b12d3062564f28e34794548 /src/BlockEntities/HopperEntity.cpp | |
parent | Merge pull request #2253 from jammet/patch-7 (diff) | |
download | cuberite-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.cpp | 2 |
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; |