There are cases where the BeehaveTree may be used already but the tree may not be initialised yet. This pull request ensures that a blackboard will always be available at all times. So errors like these should not happen any longer:
line 178: Godot Runtime Error !
'at: BeehaveTree.tick (res://addons/beehave/nodes/beehave_tree.gd:178)'
Error: 'Invalid call. Nonexistent function 'set_value' in base 'Nil'.'
There are cases where the
BeehaveTree
may be used already but the tree may not be initialised yet. This pull request ensures that a blackboard will always be available at all times. So errors like these should not happen any longer:Also added a test to verify that.