geforkt von Mirrors/FastAsyncWorldEdit
Fix WEManager (#1487)
* Fix WeManager? * Fix WeManager? * Also register WEManager if not available, like TaskManager.
Dieser Commit ist enthalten in:
Ursprung
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren