mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 00:50:15 -04:00
[Server] Remove remnant of hardcoded container sync
This commit is contained in:
parent
e3c43c6af7
commit
76468dc8c6
@ -18,18 +18,7 @@ namespace mwmp
|
|||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
|
||||||
LOG_APPEND(Log::LOG_INFO, "- action: %i", event.action);
|
LOG_APPEND(Log::LOG_INFO, "- action: %i", event.action);
|
||||||
|
|
||||||
// Until we have a timestamp-based system, send packets pertaining to more
|
// Don't have any hardcoded sync, and instead expect Lua scripts to forward
|
||||||
// than one container (i.e. replies to server requests for container contents)
|
|
||||||
// only to players who have the container's cell loaded
|
|
||||||
if (event.action == BaseEvent::SET && event.worldObjectCount > 1)
|
|
||||||
{
|
|
||||||
Cell *serverCell = CellController::get()->getCell(&event.cell);
|
|
||||||
|
|
||||||
if (serverCell != nullptr)
|
|
||||||
serverCell->sendToLoaded(&packet, &event);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Otherwise, don't have any hardcoded sync and expect Lua scripts to forward
|
|
||||||
// container packets to ensure their integrity based on what exists in the
|
// container packets to ensure their integrity based on what exists in the
|
||||||
// server data
|
// server data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user