diff options
author | KingCol13 <48412633+KingCol13@users.noreply.github.com> | 2021-07-10 22:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-10 22:05:00 +0200 |
commit | 1d1fa914012125126d1a3656edc428859696f54f (patch) | |
tree | d0190a09b6f519ce528e6d8e25d99141a3faa29f /src/ClientHandle.cpp | |
parent | Symmetry in MultiVersionProtocol to fix a crash (#5261) (diff) | |
download | cuberite-1d1fa914012125126d1a3656edc428859696f54f.tar cuberite-1d1fa914012125126d1a3656edc428859696f54f.tar.gz cuberite-1d1fa914012125126d1a3656edc428859696f54f.tar.bz2 cuberite-1d1fa914012125126d1a3656edc428859696f54f.tar.lz cuberite-1d1fa914012125126d1a3656edc428859696f54f.tar.xz cuberite-1d1fa914012125126d1a3656edc428859696f54f.tar.zst cuberite-1d1fa914012125126d1a3656edc428859696f54f.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 9dc112011..e5f001116 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1756,7 +1756,8 @@ void cClientHandle::HandleUseItem(bool a_UsedMainHand) if ( ItemHandler->IsFood() && (m_Player->IsSatiated() || m_Player->IsGameModeCreative()) && // Only non-creative or hungry players can eat - (HeldItem.m_ItemType != E_ITEM_GOLDEN_APPLE) // Golden apple is a special case, it is used instead of eaten + (HeldItem.m_ItemType != E_ITEM_GOLDEN_APPLE) && // Golden apple is a special case, it is used instead of eaten + (HeldItem.m_ItemType != E_ITEM_CHORUS_FRUIT) // Chorus fruit is a special case, it is used instead of eaten ) { // The player is satiated or in creative, and trying to eat |