diff --git a/src/main/java/org/cyclops/evilcraft/blockentity/tickaction/spiritfurnace/BoxCookTickAction.java b/src/main/java/org/cyclops/evilcraft/blockentity/tickaction/spiritfurnace/BoxCookTickAction.java index e2d8e920ec..0d1321d883 100644 --- a/src/main/java/org/cyclops/evilcraft/blockentity/tickaction/spiritfurnace/BoxCookTickAction.java +++ b/src/main/java/org/cyclops/evilcraft/blockentity/tickaction/spiritfurnace/BoxCookTickAction.java @@ -48,6 +48,8 @@ import java.util.Set; import java.util.UUID; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; /** * {@link ITickAction} that is able to cook boxes with spirits. @@ -150,8 +152,8 @@ protected ItemStack getCookStack(BlockEntitySpiritFurnace tile) { protected ItemStack getPlayerSkull(String playerName) { ItemStack itemStack = new ItemStack(Items.PLAYER_HEAD); try { - itemStack.set(DataComponents.PROFILE, new ResolvableProfile(SkullBlockEntity.fetchGameProfile(playerName).get().get())); - } catch (InterruptedException | ExecutionException | NullPointerException e) { + itemStack.set(DataComponents.PROFILE, new ResolvableProfile(SkullBlockEntity.fetchGameProfile(playerName).get(1, TimeUnit.SECONDS).get())); + } catch (InterruptedException | ExecutionException | NullPointerException | TimeoutException e) { e.printStackTrace(); } return itemStack;