This commit is contained in:
ErodeesFleurs 2024-03-19 16:50:05 +08:00
parent 876cf6343d
commit a633070b3b

View File

@ -129,7 +129,7 @@ RpcThreadPromise<Json> LuaBindings::UniverseServerCallbacks::sendWorldMessage(Un
void LuaBindings::UniverseServerCallbacks::sendPacket(UniverseServer* universe, ConnectionId clientId, String const& packetTypeName, Json const& args) {
auto packetType = PacketTypeNames.getLeft(packetTypeName);
auto packet = createPacket(packetType, args.toArray());
auto packet = createPacket(packetType, args);
universe->sendPacket(clientId, packet);
}