Scripts/Commands: Set worldstate when using .debug worldstate instead of just sending packet

This commit is contained in:
ModoX
2026-03-23 22:37:48 +01:00
parent a738e6935c
commit 201f4e09d1

View File

@@ -516,7 +516,8 @@ public:
static bool HandleDebugUpdateWorldStateCommand(ChatHandler* handler, uint32 variable, uint32 value) static bool HandleDebugUpdateWorldStateCommand(ChatHandler* handler, uint32 variable, uint32 value)
{ {
handler->GetPlayer()->SendUpdateWorldState(variable, value); Map* map = handler->GetPlayer()->GetMap();
map->SetWorldStateValue(variable, value, false);
return true; return true;
} }