Files
godot/core
Kyle 74379b15ff MultiplayerAPI is_network_server Fails Silently
Removes the error message when the network peer is not valid and returns false instead.

This makes it simpler to make games that are both on/offline by replacing server checks of

'''
if is_instance_valid(get_tree().network_peer) and get_tree().is_network_server():
		# Do server things
'''

with

'''
if get_tree().is_network_server():
		# Do server things
'''

Requires no changes to the docs because both the MultiplayerAPI and SceneTree docs don't mention the error.
2021-03-01 08:25:07 -05:00
..
2021-02-11 15:44:28 -03:00
2021-01-29 12:02:13 +01:00
2021-02-18 17:12:46 +01:00
2021-02-23 13:56:28 -03:00
2021-02-23 13:56:28 -03:00
2021-02-10 19:31:24 -03:00
2021-02-10 19:31:24 -03:00
2021-01-01 20:19:21 +01:00
2021-01-19 11:53:10 +01:00
2021-01-01 20:19:21 +01:00
2021-01-01 20:19:21 +01:00