mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Fix WEManager (#1487)
* Fix WeManager? * Fix WeManager? * Also register WEManager if not available, like TaskManager.
This commit is contained in:
parent
7da921e075
commit
ca5ad58f01
@ -32,7 +32,7 @@ public class WEManager {
|
|||||||
* @deprecated Use {@link #weManager()} instead.
|
* @deprecated Use {@link #weManager()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true, since = "2.0.0")
|
@Deprecated(forRemoval = true, since = "2.0.0")
|
||||||
private final WEManager IMP = new WEManager();
|
public static WEManager IMP = new WEManager();
|
||||||
private final ArrayDeque<FaweMaskManager> managers = new ArrayDeque<>();
|
private final ArrayDeque<FaweMaskManager> managers = new ArrayDeque<>();
|
||||||
|
|
||||||
private WEManager() {
|
private WEManager() {
|
||||||
@ -45,6 +45,9 @@ public class WEManager {
|
|||||||
* @return an instance of the WEManager
|
* @return an instance of the WEManager
|
||||||
*/
|
*/
|
||||||
public static WEManager weManager() {
|
public static WEManager weManager() {
|
||||||
|
if (INSTANCE == null) {
|
||||||
|
INSTANCE = new WEManager();
|
||||||
|
}
|
||||||
return INSTANCE;
|
return INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user