mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
fix: pass Godot 4.7 multiplayer test suite
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user