From 9e0e7f249bb64efca6e17dde5df07af6d7a6dd4b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 14 Apr 2017 16:55:31 +1000 Subject: [PATCH] Fix doing many small draw ops in static mode eventually causing every small draw op to reload the map. (Thanks Empy) --- MCGalaxy/Drawing/DrawOps/DrawOpPerformer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MCGalaxy/Drawing/DrawOps/DrawOpPerformer.cs b/MCGalaxy/Drawing/DrawOps/DrawOpPerformer.cs index e014694d9..c92794cbb 100644 --- a/MCGalaxy/Drawing/DrawOps/DrawOpPerformer.cs +++ b/MCGalaxy/Drawing/DrawOps/DrawOpPerformer.cs @@ -135,9 +135,11 @@ namespace MCGalaxy.Drawing.Ops { p.DrawOps.Add(entry); if (p.DrawOps.Count > 200) - p.DrawOps.RemoveFirst(); + p.DrawOps.RemoveFirst(); + if (item.Op.TotalModified > Server.DrawReloadLimit) DoReload(p, item.Op.Level); + item.Op.TotalModified = 0; // reset total modified (as drawop instances are used in static mode) } }