Skip to content

Commit

Permalink
Fix curseforge id
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Nov 27, 2023
1 parent d9b4b31 commit ce9e8ef
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 5 deletions.
10 changes: 10 additions & 0 deletions common/src/main/java/toughasnails/api/TANAPI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*******************************************************************************
* Copyright 2023, the Glitchfiend Team.
* All rights reserved.
******************************************************************************/
package toughasnails.api;

public class TANAPI
{
public static final String MOD_ID = "toughasnails";
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.damagesource.DamageType;
import toughasnails.api.TANAPI;

public class TANDamageTypes
{
public static final ResourceKey<DamageType> HYPERTHERMIA = register("hyperthermia");

private static ResourceKey<DamageType> register(String name)
{
return ResourceKey.create(Registries.DAMAGE_TYPE, new ResourceLocation("toughasnails", name));
return ResourceKey.create(Registries.DAMAGE_TYPE, new ResourceLocation(TANAPI.MOD_ID, name));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import toughasnails.api.capability.TANCapabilities;
import toughasnails.api.damagesource.TANDamageTypes;
import toughasnails.api.potion.TANEffects;
import toughasnails.api.temperature.IPlayerTemperatureModifier;
import toughasnails.api.temperature.ITemperature;
import toughasnails.api.temperature.TemperatureHelper;
import toughasnails.api.temperature.TemperatureLevel;
Expand All @@ -37,8 +36,6 @@

import java.util.UUID;

import static toughasnails.temperature.TemperatureHelperImpl.playerModifiers;

public class TemperatureHandler
{
private static final UUID SPEED_MODIFIER_HYPERTHERMIA_UUID = UUID.fromString("30b6ca4e-c6df-4532-80db-1d024765b56b");
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod_page_url=https://www.curseforge.com/minecraft/mc-mods/tough-as-nails
mod_issues_url=https://github.com/Glitchfiend/ToughAsNails/issues
mod_git_url=https://github.com/Glitchfiend/ToughAsNails
mod_scm_url=scm:git:[email protected]:Glitchfiend/ToughAsNails.git
mod_curseforge_id=563928
mod_curseforge_id=246391
mod_modrinth_id=tough-as-nails

# Gradle
Expand Down

0 comments on commit ce9e8ef

Please sign in to comment.