summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-28 13:01:21 +0100
committerGitHub <noreply@github.com>2020-03-28 13:01:21 +0100
commitec7247fa63e0db1b96960f54f99b60a05be4e056 (patch)
tree7db137fd21424be0eb22fdb87b56d0e3222e2b5f /src/UI/SlotArea.cpp
parentcClientHandle: Only allow m_State to increase (#4533) (diff)
downloadcuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.tar
cuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.tar.gz
cuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.tar.bz2
cuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.tar.lz
cuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.tar.xz
cuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.tar.zst
cuberite-ec7247fa63e0db1b96960f54f99b60a05be4e056.zip
Diffstat (limited to 'src/UI/SlotArea.cpp')
-rw-r--r--src/UI/SlotArea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index e7a6b4407..84e6efb77 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -1590,8 +1590,8 @@ void cSlotAreaEnchanting::OnPlayerAdded(cPlayer & a_Player)
void cSlotAreaEnchanting::OnPlayerRemoved(cPlayer & a_Player)
{
- // Toss the item in the enchanting slot
- TossItems(a_Player, 0, 1);
+ // Toss the item in the enchanting slot, as well as lapis
+ TossItems(a_Player, 0, m_NumSlots);
super::OnPlayerRemoved(a_Player);
}