diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-01 20:34:50 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-01 20:34:50 +0200 |
commit | 64e66674355c84c091564197dcbdf26806e61659 (patch) | |
tree | beddb9e6293e4bb3a7aba04d1d7901f1e0af27e0 /src/UI/Window.cpp | |
parent | Fix server-crash with non-existing items. (diff) | |
download | cuberite-64e66674355c84c091564197dcbdf26806e61659.tar cuberite-64e66674355c84c091564197dcbdf26806e61659.tar.gz cuberite-64e66674355c84c091564197dcbdf26806e61659.tar.bz2 cuberite-64e66674355c84c091564197dcbdf26806e61659.tar.lz cuberite-64e66674355c84c091564197dcbdf26806e61659.tar.xz cuberite-64e66674355c84c091564197dcbdf26806e61659.tar.zst cuberite-64e66674355c84c091564197dcbdf26806e61659.zip |
Diffstat (limited to 'src/UI/Window.cpp')
-rw-r--r-- | src/UI/Window.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp index af3e3e45c..e465b701a 100644 --- a/src/UI/Window.cpp +++ b/src/UI/Window.cpp @@ -170,12 +170,6 @@ void cWindow::Clicked( const cItem & a_ClickedItem ) { - if (!IsValidItem(a_ClickedItem.m_ItemType) && !IsValidBlock(a_ClickedItem.m_ItemType)) - { - LOGWARNING("%s: Player \"%s\" clicked to a non-existing item; ignoring click.", __FUNCTION__, a_Player.GetName().c_str()); - return; - } - cPluginManager * PlgMgr = cRoot::Get()->GetPluginManager(); if (a_WindowID != m_WindowID) { |