From d75563954449638db5003ffc90dcabca407eb092 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 21 Jul 2018 15:31:49 +0200 Subject: [PATCH] Turns out we don't need these --- .../hdskins/mixin/MixinSkullRenderer.java | 7 +++---- .../com/voxelmodpack/hdskins/util/Optionals.java | 16 ---------------- 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 src/hdskins/java/com/voxelmodpack/hdskins/util/Optionals.java 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; - } -}