config to file package, and capitalize

This commit is contained in:
Oth3r 2024-04-04 21:45:28 -05:00
commit 132c9dc55a
6 changed files with 46 additions and 44 deletions

View file

@ -14,12 +14,11 @@ import net.minecraft.server.command.CommandManager;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.MutableText;
import net.minecraft.text.Text;
import one.oth3r.sit.file.Config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.HashMap;
public class Sit implements ModInitializer {
@ -36,7 +35,7 @@ public class Sit implements ModInitializer {
//todo future:
// make it so it updates the sitting height and pos based on the block so if it changed while offline it still works (or if stair changes shape)
// inner stair offset & custom support for that ig
config.load();
Config.load();
Events.register();
//PACKETS
ServerPlayNetworking.registerGlobalReceiver(PacketBuilder.getIdentifier(),