diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java b/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java index 7abf90e6..cf49650c 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java @@ -3,7 +3,6 @@ package com.voxelmodpack.hdskins.mixin; import com.mojang.authlib.GameProfile; import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type; import com.voxelmodpack.hdskins.HDSkinManager; -import com.voxelmodpack.hdskins.util.Optionals; import net.minecraft.client.renderer.tileentity.TileEntitySkullRenderer; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; @@ -23,10 +22,10 @@ public abstract class MixinSkullRenderer extends TileEntitySpecialRenderer T nullableOf(Optional optional) { - return getOrDefault(optional, null); - } - - public static T getOrDefault(Optional optional, T def) { - return optional.isPresent() ? optional.get() : def; - } -}