diff options
Diffstat (limited to 'client/scripts/multiplayer.gd')
| -rw-r--r-- | client/scripts/multiplayer.gd | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/client/scripts/multiplayer.gd b/client/scripts/multiplayer.gd index 3d360cf8..1645ab45 100644 --- a/client/scripts/multiplayer.gd +++ b/client/scripts/multiplayer.gd @@ -130,6 +130,9 @@ func handle_packet(bytes: PackedByteArray):  					push_error("neither text nor item provided")  			else:  				emit_signal("clear_message", player) +		"error": +			var message = decoded["message"] +			push_warning("server error: %s" % message)  		_:  			push_error("Unrecognized packet type: %s" % packet_type) @@ -175,11 +178,11 @@ func pos_to_vec2i(pos: Array) -> Vector2i:  	return Vector2i(pos[0], pos[1])  func get_tile_collision(pos: Vector2i) -> bool: -	var t = tileid_by_pos[str(pos)] +	var t = tileid_by_pos.get(str(pos))  	if t == null: return false  	else: return tile_collide[t]  func get_tile_interactive(pos: Vector2i) -> bool: -	var t = tileid_by_pos[str(pos)] +	var t = tileid_by_pos.get(str(pos))  	if t == null: return false  	else: return tile_interact[t] | 
