ITADN

[BUG] Tasks infinitely loop when inside a loop with a false condition

#972OpenGDudeUnderscore 创建于 2026-05-28
bug :lady_beetle:
G
GDudeUnderscorecommented
### What happened? title ### Steps to reproduce ``` function test(): loop 1 time: run 0 ticks later: add 1 to {-test} broadcast {-test} 1 = 0 # using 'stop' works normally, but an false condition will cause an infinite loop ``` <img width="374" height="681" alt="Image" src="https://github.com/user-attachments/assets/ca3aa186-dfdc-4ce1-9d03-8a49d48d08db" /> ### Expected behavior it shouldn't do that ### SkBee Version 3.24.0 ### Server Version Paper 26.1.2-66 ### SkBee Info ``` [09:55:22 INFO]: --- [SkBee Loading Info] --- [09:55:22 INFO]: - [NBTAPI] Found Minecraft: 26.1.2.build.66! Trying to find NMS support [09:55:22 INFO]: - [NBTAPI] NMS support 'MC26_1' loaded! [09:55:22 INFO]: - NBT Elements successfully loaded [09:55:22 INFO]: - Advancement Elements successfully loaded [09:55:22 INFO]: - BossBar Elements successfully loaded [09:55:22 INFO]: - Bound Elements successfully loaded [09:55:22 INFO]: - Damage Source Elements successfully loaded [09:55:22 INFO]: - Dialog Elements successfully loaded [09:55:22 INFO]: - Fastboard[Adventure] Elements successfully loaded [09:55:22 INFO]: - Fishing Elements successfully loaded [09:55:22 INFO]: - Game Event Elements successfully loaded [09:55:22 INFO]: - Item Component Elements successfully loaded [09:55:22 INFO]: - Property Elements successfully loaded [09:55:22 INFO]: - RayTrace Elements successfully loaded [09:55:22 INFO]: - Recipe Elements successfully loaded [09:55:22 INFO]: - Registry Elements successfully loaded [09:55:22 INFO]: - Scoreboard Elements successfully loaded [09:55:22 INFO]: - Statistic Elements successfully loaded [09:55:22 INFO]: - Structure Elements successfully loaded [09:55:22 INFO]: - SwitchCase Elements successfully loaded [09:55:22 INFO]: - Text Component Elements successfully loaded [09:55:22 INFO]: - Tick Manager Elements successfully loaded [09:55:22 INFO]: - Villager Elements successfully loaded [09:55:22 INFO]: - Virtual Furnace Elements disabled via config [09:55:22 INFO]: - World Creator Elements successfully loaded [09:55:22 INFO]: - Plugin is up to date! [09:55:22 INFO]: --- [Server Info] --- [09:55:22 INFO]: Server Version: Paper 26.1.2-66-34cf3ab (MC: 26.1.2) [09:55:22 INFO]: Skript Version: 2.15.2 (skriptlang-github) [09:55:22 INFO]: Skript Addons: [09:55:22 INFO]: SkBee Version: 3.24.0 [09:55:22 INFO]: SkBee Website: https://github.com/ShaneBeee/SkBee ``` ### Additional Information _No response_
0 条评论