summaryrefslogtreecommitdiffstats
path: root/source/UI/SlotArea.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-28 13:30:24 +0100
committermadmaxoft <github@xoft.cz>2013-10-28 13:30:24 +0100
commitdf20c19986805380cfd728d63f2e3003331b1665 (patch)
tree6f2d00c4b23f46af9a6d39550186815a95905dcb /source/UI/SlotArea.cpp
parentAPIDump: Documented HTTPFormData and HTTPRequest. (diff)
downloadcuberite-df20c19986805380cfd728d63f2e3003331b1665.tar
cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.gz
cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.bz2
cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.lz
cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.xz
cuberite-df20c19986805380cfd728d63f2e3003331b1665.tar.zst
cuberite-df20c19986805380cfd728d63f2e3003331b1665.zip
Diffstat (limited to '')
-rw-r--r--source/UI/SlotArea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/UI/SlotArea.cpp b/source/UI/SlotArea.cpp
index 463e56bce..82e87e126 100644
--- a/source/UI/SlotArea.cpp
+++ b/source/UI/SlotArea.cpp
@@ -559,7 +559,7 @@ cSlotAreaInventoryBase::cSlotAreaInventoryBase(int a_NumSlots, int a_SlotOffset,
void cSlotAreaInventoryBase::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem)
{
- if ((a_Player.GetGameMode() == eGameMode_Creative) && (m_ParentWindow.GetWindowType() == cWindow::Inventory))
+ if (a_Player.IsGameModeCreative() && (m_ParentWindow.GetWindowType() == cWindow::wtInventory))
{
// Creative inventory must treat a_ClickedItem as a DraggedItem instead, replacing the inventory slot with it
SetSlot(a_SlotNum, a_Player, a_ClickedItem);