Update and rename Lock.java to LockWithTimeReset.java

This commit is contained in:
Night 2023-06-13 21:48:40 +01:00 committed by GitHub
parent 913d2c09f1
commit 736d7157b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ package me.night0721.lilase.utils;
public class LockWithTimeReset { public class LockWithTimeReset {
public boolean isLocked = false; public boolean isLocked = false;
public static void lock() { public void lock() {
this.isLocked = true; this.isLocked = true;
new Thread(() -> { new Thread(() -> {
try { try {