diff --git a/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java b/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java index b07e6d37f..60d010a1b 100644 --- a/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java +++ b/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java @@ -425,14 +425,14 @@ public void onScriptChanged(String previous, String current, File source) { private void setContent(String current) { if (current.length() > 3 && !content.contentEquals(current)) { + content = current; // writes long now=System.currentTimeMillis(); - if(now<(timeSinceLastUpdate+2000)) { + if(now<(timeSinceLastUpdate+100)) { System.err.println("Ovewrite Protect!"); return; } timeSinceLastUpdate=now; - content = current; // writes System.out.println("External change of " + file.getName() + " on " + dateFormat.format(new Date())); if (current.length() > MaxTextSize) {