mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +01:00
Removed check for manager getters
This commit is contained in:
parent
fb098fe4f9
commit
617d3cc89f
@ -57,7 +57,6 @@ import org.slf4j.LoggerFactory;
|
||||
import java.io.IOException;
|
||||
import java.net.Proxy;
|
||||
import java.security.KeyPair;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* The main server class used to start the server and retrieve all the managers.
|
||||
@ -623,9 +622,9 @@ public class MinecraftServer {
|
||||
}
|
||||
|
||||
private static void checkInitStatus(@Nullable Object object) {
|
||||
Check.stateCondition(Objects.isNull(object),
|
||||
/*Check.stateCondition(Objects.isNull(object),
|
||||
"You cannot access the manager before MinecraftServer#init, " +
|
||||
"if you are developing an extension be sure to retrieve them at least after Extension#preInitialize");
|
||||
"if you are developing an extension be sure to retrieve them at least after Extension#preInitialize");*/
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ public class Arguments {
|
||||
|
||||
private Map<String, Object> args = new HashMap<>();
|
||||
|
||||
@Nullable
|
||||
public boolean getBoolean(@NotNull String id) {
|
||||
return (boolean) getObject(id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user