diff --git a/Emitters/UI/EditorButton.cs b/Emitters/UI/EditorButton.cs
index 608a332..1b1dd12 100644
--- a/Emitters/UI/EditorButton.cs
+++ b/Emitters/UI/EditorButton.cs
@@ -37,17 +37,21 @@ public void ReadyEditorButtonPress( Action func ) {
this.EditorButtonAction = func;
}
+ ///
+ /// `true` if mouse interaction has occurred.
public bool PressEditorButtonIfInteracting() {
if( this.EditorButtonAction == null ) {
return false;
}
- if( Main.mouseLeft && Main.mouseLeftRelease ) {
+ bool isMouse = Main.mouseLeft && Main.mouseLeftRelease;
+ if( isMouse ) {
this.EditorButtonAction.Invoke();
}
+
this.EditorButtonAction = null;
- return true;
+ return isMouse;
}
diff --git a/Emitters/build.txt b/Emitters/build.txt
index 115bd8a..8fd8d9a 100644
--- a/Emitters/build.txt
+++ b/Emitters/build.txt
@@ -1,6 +1,6 @@
displayName = Emitters
author = hamstar
-version = 2.0.0
+version = 2.0.0.1
modReferences = HamstarHelpers@5.8.0
buildIgnore = *.csproj, *.user, *.bat, obj\*, bin\*, .vs\*, .git\*
homepage = https://forums.terraria.org/index.php?threads/emitters.87584/
\ No newline at end of file