mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-17 20:31:37 +01:00
Use shift, not pop, for queue.
This commit is contained in:
parent
91b9b456b5
commit
f5f9c3bb31
@ -121,7 +121,7 @@ var DynmapTileLayer = L.TileLayer.extend({
|
||||
},
|
||||
_nextLoadTile: function() {
|
||||
if (this._loadingTiles.length > 4) { return; }
|
||||
var next = this._loadQueue.pop();
|
||||
var next = this._loadQueue.shift();
|
||||
if (!next) { return; }
|
||||
|
||||
next.loadSrc();
|
||||
|
Loading…
Reference in New Issue
Block a user