I’m getting a warning in a place in my code where the code works perfectly fine. It does exactly what I need it to, and it is a recent warning. I can not remember if this was an issue in 4.2, but it started to pop up sometime within the last 3 days. I would test it in 4.2 but my project was already converted to 4.3.
await jump(1) if not in_orb else trigger_behavior(orb.orb_type, "Orb", orb)
In Project → Project Settings → General → Debug → GDScript is a option called
“Return value discarded”. You can just set it to ignore if you want to get rid of it
Ok now I know it was a bug because I went to that setting and it was on ignore by default. I changed it to warn and it gave me the same warning but for a different reason. I changed it back to ignore and now it just doesn’t pop up anymore. I guess 4.3 forgot to refresh the debug settings. At least for me. I did change it to warning before I changed it back to ignore if that’s important. Thank you for pointing me in that direction, I am very glad that the warning doesn’t appear in my output anymore
Edit: Ok it fixed itself in my titlescreen but not my main scene apperently. This bug is weird