chore: some small improvements
This commit is contained in:
parent
f3500f73f6
commit
5453dcf038
@ -8,7 +8,7 @@ import net.neoforged.fml.event.config.ModConfigEvent;
|
||||
import net.neoforged.neoforge.common.ModConfigSpec;
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@EventBusSubscriber(modid = SkinTypeFix.MODID, bus = EventBusSubscriber.Bus.MOD)
|
||||
@EventBusSubscriber(modid = SkinTypeFix.ID, bus = EventBusSubscriber.Bus.MOD)
|
||||
public class Config {
|
||||
private static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder();
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
package icu.puqns67.skintypefix;
|
||||
|
||||
import com.mojang.logging.LogUtils;
|
||||
import net.neoforged.api.distmarker.Dist;
|
||||
import net.neoforged.api.distmarker.OnlyIn;
|
||||
import net.neoforged.bus.api.IEventBus;
|
||||
@ -9,12 +8,13 @@ import net.neoforged.fml.common.Mod;
|
||||
import net.neoforged.fml.config.ModConfig;
|
||||
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Mod(SkinTypeFix.MODID)
|
||||
@Mod(SkinTypeFix.ID)
|
||||
public class SkinTypeFix {
|
||||
public static final String MODID = "skintypefix";
|
||||
public static final Logger LOGGER = LogUtils.getLogger();
|
||||
public static final String ID = "skintypefix";
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger(ID);
|
||||
|
||||
public SkinTypeFix(IEventBus modEventBus, ModContainer modContainer) {
|
||||
modEventBus.addListener(this::setup);
|
||||
|
@ -1,12 +1,11 @@
|
||||
package icu.puqns67.skintypefix.util;
|
||||
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.client.resources.PlayerSkin;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class Utils {
|
||||
private static final UUID INVALID_UUID = new UUID(0, 0);
|
||||
|
||||
public static PlayerSkin.Model reverseModelType(PlayerSkin.Model type) {
|
||||
return switch (type) {
|
||||
case SLIM -> PlayerSkin.Model.WIDE;
|
||||
@ -15,6 +14,6 @@ public class Utils {
|
||||
}
|
||||
|
||||
public static boolean isInvalidUUID(UUID uuid) {
|
||||
return INVALID_UUID.equals(uuid);
|
||||
return Util.NIL_UUID.equals(uuid);
|
||||
}
|
||||
}
|
||||
|
@ -16,13 +16,13 @@ description='''${mod_description}'''
|
||||
config="${mod_id}.mixins.json"
|
||||
|
||||
[[dependencies.${mod_id}]]
|
||||
modId="minecraft"
|
||||
type="required"
|
||||
versionRange="${minecraft_version_range}"
|
||||
side="CLIENT"
|
||||
modId="minecraft"
|
||||
type="required"
|
||||
versionRange="${minecraft_version_range}"
|
||||
side="CLIENT"
|
||||
|
||||
[[dependencies.${mod_id}]]
|
||||
modId="neoforge"
|
||||
type="required"
|
||||
versionRange="${neoforge_version_range}"
|
||||
side="CLIENT"
|
||||
modId="neoforge"
|
||||
type="required"
|
||||
versionRange="${neoforge_version_range}"
|
||||
side="CLIENT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user