mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Change break to return
Former-commit-id: 2880befb208feebf539b4c8bd8bc99b859564679 [formerly b06ae086df4bac993c0d4c485eb24e1f4ff488ea] Former-commit-id: 4fd69bc168337920ca582250c9a09c0b93829f4c
This commit is contained in:
1 parent
3c2159cdf2
commit
2ff2083555
1 file changed
+2
-2
@@ -65,10 +65,10 @@ public class QueuedShopManager {
|
||||
while (true) {
|
||||
if (!shuttingDown)
|
||||
if (loadedShopInTick >= maxShopLoadPerTick) //Max loads check
|
||||
break; //Jump out, go next tick
|
||||
return; //Jump out, go next tick
|
||||
QueueShopObject queueShopObject = shopQueue.poll(); //Load QueueShopObject
|
||||
if (queueShopObject == null) //No more queue need to do
|
||||
break; //Jump out, go next tick
|
||||
return; //Jump out, go next tick
|
||||
this.doTask(queueShopObject);
|
||||
loadedShopInTick++;
|
||||
if (shuttingDown) {
|
||||
|
||||
Reference in new issue
Block a user