Fix calling new DataLock twice

This commit is contained in:
auto committed 2022-10-27 23:00:20 +02:00
1 parent bbc7de6751
commit f6c9aaef66
2 files changed
+2 -2

No files matched your search

@@ -20,7 +20,7 @@ public class DataLock implements DataLockAPI {
private final PluginMessageListener pluginMessageListener;
private final DataLockLib plugin;
private final Idempotency activeRequests;
protected DataLock() {
private DataLock() {
DataLockAPI.Provider.register(this);
pluginMessageListener = new PluginMessageListener();
plugin = DataLockLib.getInstance();
@@ -18,7 +18,7 @@ public class DataLockLib extends JavaPlugin {
@Override
public void onEnable() {
dataLock = new DataLock();
dataLock = DataLock.getInstance();
}
@Override