diff --git a/src/generated/resources/kasuga_lib.png b/src/generated/resources/kasuga_lib.png index 82cb7ccc..b54a9140 100644 Binary files a/src/generated/resources/kasuga_lib.png and b/src/generated/resources/kasuga_lib.png differ diff --git a/src/main/java/kasuga/lib/core/KasugaLibStacks.java b/src/main/java/kasuga/lib/core/KasugaLibStacks.java index 11a8d317..39b92175 100644 --- a/src/main/java/kasuga/lib/core/KasugaLibStacks.java +++ b/src/main/java/kasuga/lib/core/KasugaLibStacks.java @@ -50,6 +50,7 @@ public class KasugaLibStacks { public KasugaLibStacks(IEventBus bus) { this.bus = bus; this.registries = new HashMap<>(); + KeyBindingReg.invoke(); ARGUMENT_TYPES = DeferredRegister.create(ForgeRegistries.Keys.COMMAND_ARGUMENT_TYPES, MOD_ID); ARGUMENT_TYPES.register("base", () -> ArgumentTypeInfos.registerByClass(BaseArgument.class, new BaseArgumentInfo())); ARGUMENT_TYPES.register(bus); diff --git a/src/main/java/kasuga/lib/registrations/client/KeyBindingReg.java b/src/main/java/kasuga/lib/registrations/client/KeyBindingReg.java index 380124cc..0412ee61 100644 --- a/src/main/java/kasuga/lib/registrations/client/KeyBindingReg.java +++ b/src/main/java/kasuga/lib/registrations/client/KeyBindingReg.java @@ -32,16 +32,11 @@ public class KeyBindingReg extends Reg { private Consumer serverHandler; private KeyModifier modifier = KeyModifier.NONE; private InputConstants.Type type = InputConstants.Type.KEYSYM; - private static final ChannelReg keyChannel; - private static final LinkedList registered; - - static { - keyChannel = new ChannelReg("kasuga_lib_key_bindings") - .brand("1.0") - .loadPacket(KeyBindingReg.KeySyncPacket.class, KeyBindingReg.KeySyncPacket::new) - .submit(KasugaLibStacks.REGISTRY); - registered = new LinkedList<>(); - } + private static final ChannelReg keyChannel = new ChannelReg("kasuga_lib_key_bindings") + .brand("1.0") + .loadPacket(KeyBindingReg.KeySyncPacket.class, KeyBindingReg.KeySyncPacket::new) + .submit(KasugaLibStacks.REGISTRY);; + private static final LinkedList registered = new LinkedList<>(); /** * The beginning of your registry @@ -210,4 +205,6 @@ public void encode(FriendlyByteBuf buf) { buf.writeCharSequence(key, StandardCharsets.UTF_8); } } + + public static void invoke(){} }