mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-19 04:07:10 -04:00
Fix doing many small draw ops in static mode eventually causing every small draw op to reload the map. (Thanks Empy)
This commit is contained in:
parent
14be68a8e6
commit
9e0e7f249b
@ -135,9 +135,11 @@ namespace MCGalaxy.Drawing.Ops {
|
|||||||
|
|
||||||
p.DrawOps.Add(entry);
|
p.DrawOps.Add(entry);
|
||||||
if (p.DrawOps.Count > 200)
|
if (p.DrawOps.Count > 200)
|
||||||
p.DrawOps.RemoveFirst();
|
p.DrawOps.RemoveFirst();
|
||||||
|
|
||||||
if (item.Op.TotalModified > Server.DrawReloadLimit)
|
if (item.Op.TotalModified > Server.DrawReloadLimit)
|
||||||
DoReload(p, item.Op.Level);
|
DoReload(p, item.Op.Level);
|
||||||
|
item.Op.TotalModified = 0; // reset total modified (as drawop instances are used in static mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user