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:
UnknownShadow200 2017-04-14 16:55:31 +10:00
parent 14be68a8e6
commit 9e0e7f249b

View File

@ -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)
} }
} }