Update PlayerCreatureController.cpp

This commit is contained in:
John
2021-09-28 13:36:36 -04:00
committed by GitHub
parent 61070d8b6a
commit e11d527b7a

View File

@@ -1533,7 +1533,7 @@ void PlayerCreatureController::handleMessage (const int message, const float val
ServerObject * const sObj = ServerWorld::findObjectByNetworkId(i);
if(!obj ||
!sObj ||
!ContainerInterface::isNestedWithin(*obj, getCreature()->getInventory()->getNetworkId()) ||
!ContainerInterface::isNestedWithin(*obj, getCreature()->getNetworkId()) ||
!sObj->getObjVars().hasItem("strDroidCommand"))
{
LOG("SuspectedCheaterChannel", ("Player %s tried to delete an object (%s) they aren't allowed to delete using DroidCommandProgrammingMessage.",