mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Fix click counter
This commit is contained in:
1 parent
eb47513b44
commit
a78386b433
1 file changed
+1
-1
@@ -14,7 +14,7 @@ public class ClickCounter<T>
|
||||
public int count;
|
||||
|
||||
public boolean update(T clicked) {
|
||||
if(Objects.equal(this.clicked, clicked)) {
|
||||
if(!Objects.equal(this.clicked, clicked)) {
|
||||
this.clicked = clicked;
|
||||
count = 0;
|
||||
time = Long.MIN_VALUE;
|
||||
|
||||
Reference in new issue
Block a user