flip isClient boolean, and remove redundant SitServer

This commit is contained in:
Oth3r 2023-11-26 00:18:33 -06:00
commit 34bf49c62f
4 changed files with 2 additions and 16 deletions

View file

@ -24,7 +24,7 @@ public class Sit implements ModInitializer {
public static final String ENTITY_NAME = "-sit!-entity-";
public static MinecraftServer server;
public static CommandManager commandManager;
public static boolean isClient = true;
public static boolean isClient = false;
@Override
public void onInitialize() {

View file

@ -9,6 +9,7 @@ public class SitClient implements ClientModInitializer {
public static boolean inGame = false;
@Override
public void onInitializeClient() {
Sit.isClient = true;
ClientPlayConnectionEvents.JOIN.register((handler, sender, client) -> {
inGame = true;
// send a data packet whenever joining a server

View file

@ -1,12 +0,0 @@
package one.oth3r.sit;
import net.fabricmc.api.DedicatedServerModInitializer;
public class SitServer implements DedicatedServerModInitializer {
@Override
public void onInitializeServer() {
Sit.isClient = false;
config.load();
LangReader.loadLanguageFile();
}
}