[Net] Fix Multiplayer Bomber custom spawner.

Needed starting beta11 (Godot GH-71129).
This commit is contained in:
Fabio Alessandrelli
2023-01-13 16:19:18 +01:00
parent 470464518b
commit c1461de661

View File

@@ -1,6 +1,10 @@
extends MultiplayerSpawner
func _spawn_custom(data):
func _init():
spawn_function = _spawn_bomb
func _spawn_bomb(data):
if data.size() != 2 or typeof(data[0]) != TYPE_VECTOR2 or typeof(data[1]) != TYPE_INT:
return null
var bomb = preload("res://bomb.tscn").instantiate()