You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/es/superstrellaa/storagemanager/internal/middleware/ServerGuard.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,16 @@ public static void markServerReady() {
14
14
serverReady = true;
15
15
}
16
16
17
-
publicstaticvoidrequireServer() {
17
+
publicstaticbooleanrequireServer() {
18
18
if (!serverReady) {
19
19
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER) {
20
20
StorageManagerAPI.LOGGER.error("StorageManager API is not ready yet! This likely means that you are trying to use it during mod initialization, which is too early. Please wait until the server has started.");
21
21
} else {
22
22
StorageManagerAPI.LOGGER.warn("StorageManager API isn't meant for here! This likely means that you are trying to use it on the client side, which is not supported. Please only use the API on the server side.");
0 commit comments