Skip to content

Commit

Permalink
fix: Fix compile error on Fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Oct 30, 2024
1 parent 0689c97 commit b6a3730
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,12 @@

import net.blay09.mods.balm.api.Balm;
import net.blay09.mods.balm.api.EmptyLoadContext;
import net.blay09.mods.balm.fabric.provider.FabricBalmProviders;
import net.blay09.mods.hardcorerevival.HardcoreRevival;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.lookup.v1.entity.EntityApiLookup;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.EntityType;

public class FabricHardcoreRevival implements ModInitializer {
@Override
public void onInitialize() {
Balm.initialize(HardcoreRevival.MOD_ID, EmptyLoadContext.INSTANCE, HardcoreRevival::initialize);

var providers = ((FabricBalmProviders) Balm.getProviders());
ResourceLocation identifier = ResourceLocation.fromNamespaceAndPath(HardcoreRevival.MOD_ID, "player_data");
providers.registerProvider(identifier, HardcoreRevivalData.class);
var lookup = EntityApiLookup.get(identifier, HardcoreRevivalData.class, Void.class);
lookup.registerForType((entity, context) -> ((FabricPlayer) entity).getHardcoreRevivalData(), EntityType.PLAYER);
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"package": "net.blay09.mods.hardcorerevival.fabric.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
"FabricPlayerMixin"
],
"client": [
],
Expand Down

0 comments on commit b6a3730

Please sign in to comment.