Removed check for manager getters

This commit is contained in:
themode 2020-10-28 13:19:34 +01:00
parent fb098fe4f9
commit 617d3cc89f
2 changed files with 2 additions and 4 deletions

View File

@ -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");*/
}
}

View File

@ -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);
}