This commit is contained in:
JeroenV26 2025-11-05 14:51:55 +01:00
commit 7acfa89b54
14 changed files with 299 additions and 33 deletions

View file

@ -24,9 +24,8 @@ void ClientNode::enter_tree() {
if (singleton_instance) {
print_error("Attempt to create duplicate ClientNode, aborting");
abort();
} else {
singleton_instance = this;
}
singleton_instance = this;
}
void ClientNode::process() {
@ -71,6 +70,7 @@ void ClientNode::_notification(int what) {
return;
case NOTIFICATION_ENTER_TREE:
set_process(true);
enter_tree();
return;
case NOTIFICATION_PROCESS:
process();