diff options
author | sfan5 <sfan5@live.de> | 2017-09-15 12:19:01 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-15 12:19:01 +0200 |
commit | 04839f233f37faa9af406ea66fc6c199127781eb (patch) | |
tree | d243fcae7f57fe4cf22046f42cda5424a1561e4c /src/network | |
parent | edbc533414b0ba991a82f8003d90924e1dc60d95 (diff) | |
download | minetest-04839f233f37faa9af406ea66fc6c199127781eb.tar.gz minetest-04839f233f37faa9af406ea66fc6c199127781eb.tar.bz2 minetest-04839f233f37faa9af406ea66fc6c199127781eb.zip |
ServerEnv: Clean up object lifecycle handling (#6414)
* ServerEnv: Clean up object lifecycle handling
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/serverpackethandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 07de20d60..c4c0c9d0d 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1124,8 +1124,8 @@ void Server::handleCommand_Interact(NetworkPacket* pkt) playersao->noCheatDigStart(p_under); } else if (pointed.type == POINTEDTHING_OBJECT) { - // Skip if object has been removed - if (pointed_object->m_removed) + // Skip if object can't be interacted with anymore + if (pointed_object->isGone()) return; actionstream<<player->getName()<<" punches object " @@ -1283,8 +1283,8 @@ void Server::handleCommand_Interact(NetworkPacket* pkt) if (pointed.type == POINTEDTHING_OBJECT) { // Right click object - // Skip if object has been removed - if (pointed_object->m_removed) + // Skip if object can't be interacted with anymore + if (pointed_object->isGone()) return; actionstream << player->getName() << " right-clicks object " |