99import com .massivecraft .massivecore .mixin .MixinModification ;
1010import com .massivecraft .massivecore .store .migrator .MigratorUtil ;
1111import com .massivecraft .massivecore .util .MUtil ;
12- import com .massivecraft .massivecore .util .ReflectionUtil ;
1312import com .massivecraft .massivecore .util .Txt ;
1413import com .massivecraft .massivecore .xlib .gson .Gson ;
1514import com .massivecraft .massivecore .xlib .gson .JsonElement ;
@@ -555,7 +554,13 @@ public Modification syncIdFixed(String id, final Modification suppliedModificati
555554 this .removeIdentifiedModificationFixed (id );
556555 break ;
557556 }
558-
557+
558+ E entity = this .getFixed (id );
559+ if (entity != null )
560+ {
561+ entity .setLastStackTraceChanged (null );
562+ }
563+
559564 return modification ;
560565 }
561566
@@ -595,7 +600,7 @@ private Modification getActualModification(String id, Modification modification,
595600
596601 private void checkActuallyModifiedFixed (String id )
597602 {
598- if (!ConfServer . localPollingEnabled || ! MassiveCoreMConf . get (). warnOnLocalAlter ) return ;
603+ if (!MStore . isLocalPollingDebugEnabled () ) return ;
599604
600605 E entity = this .getFixed (id );
601606 boolean modified = this .examineHasLocalAlterFixed (id , entity );
@@ -607,6 +612,7 @@ private void checkActuallyModifiedFixed(String id)
607612 String change = Txt .implode (messages , Txt .parse ("<silver> | " ));
608613 String message = Txt .parse ("<b>[No Modification] %s" , change );
609614 this .getPlugin ().log (message );
615+ if (entity .getLastStackTraceChanged () != null ) this .getPlugin ().log (MUtil .getStackTraceString (entity .getLastStackTraceChanged (), true ));
610616 }
611617
612618 protected void logModification (E entity , Modification modification )
0 commit comments