diff options
author | Kyle <eichlinkyle@gmail.com> | 2021-03-01 08:25:07 -0500 |
---|---|---|
committer | Kyle <eichlinkyle@gmail.com> | 2021-03-01 08:25:07 -0500 |
commit | 74379b15ff7f534730557836be901e3c8a3cd2f8 (patch) | |
tree | ec664ba934f402b82a213718abe56ac4773af3a7 /doc/translations/fa.po | |
parent | bd42a6c51e384f55bbfda9ce64f85b471dbabda6 (diff) |
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.
Diffstat (limited to 'doc/translations/fa.po')
0 files changed, 0 insertions, 0 deletions