summaryrefslogtreecommitdiff
path: root/scene/3d/voxelizer.h
diff options
context:
space:
mode:
authorKyle <eichlinkyle@gmail.com>2021-03-01 08:25:07 -0500
committerKyle <eichlinkyle@gmail.com>2021-03-01 08:25:07 -0500
commit74379b15ff7f534730557836be901e3c8a3cd2f8 (patch)
treeec664ba934f402b82a213718abe56ac4773af3a7 /scene/3d/voxelizer.h
parentbd42a6c51e384f55bbfda9ce64f85b471dbabda6 (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 'scene/3d/voxelizer.h')
0 files changed, 0 insertions, 0 deletions