fix: pass Godot 4.7 multiplayer test suite

This commit is contained in:
Josh Creek
2026-09-01 08:24:33 +01:00
parent 76aad61191
commit c5678ce877
5 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ func _handle_websocket_packet(packet: PackedByteArray) -> void:
_on_resync_required(String(event["resource_id"]))
func _valid_websocket_event(event: Dictionary) -> bool:
static func _valid_websocket_event(event: Dictionary) -> bool:
if not event.has("event") or not event["event"] is String or String(event["event"]).is_empty():
return false
if not event.has("revision") or not (event["revision"] is int or event["revision"] is float):