Change break to return

Former-commit-id: 2880befb208feebf539b4c8bd8bc99b859564679 [formerly b06ae086df4bac993c0d4c485eb24e1f4ff488ea]
Former-commit-id: 4fd69bc168337920ca582250c9a09c0b93829f4c
This commit is contained in:
Ghost_chu committed 2019-06-08 15:37:10 +08:00
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) {