Skip to content

Commit

Permalink
better extension registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed Dec 24, 2022
1 parent 47b684e commit 904f6e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class IvanCarpetAdditionMod implements ModInitializer {
@Override
public void onInitialize() {
version = FabricLoader.getInstance().getModContainer(MOD_ID).orElseThrow(RuntimeException::new).getMetadata().getVersion().getFriendlyString();

IvanCarpetAdditionServer.init();
}

public static String getModId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public static IvanCarpetAdditionServer getInstance() {
return INSTANCE;
}

public void registerExtension() {
CarpetServer.manageExtension(this);
public static void init() {
CarpetServer.manageExtension(INSTANCE);
ICATranslations.loadTranslations();
}

@Override
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/ivan-carpet-addition.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"plugin": "me.ivan.ivancarpetaddition.utils.mixin.ICAMixinPlugin",
"compatibilityLevel": "JAVA_8",
"mixins": [
"carpet.CarpetServerMixin",
"carpet.HUDControllerMixin",
"carpet.SettingsManagerMixin",
"command.xpcounter.ExperienceOrbEntityAccessor",
Expand Down

0 comments on commit 904f6e3

Please sign in to comment.