From e55b5458459d79c267b105334d3d54d4340f2161 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Thu, 15 Sep 2022 15:39:11 +0200 Subject: typos --- .../skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt | 2 +- src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt index 31c9fd92a..100ad7427 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt @@ -54,7 +54,7 @@ class DungeonHighlightClickedBlocks { } if (type == ClickedBlockType.WITHER_ESSENCE) { - val text = BlockUtils.getSkinFromSkull(position.toBlocPos()) + val text = BlockUtils.getTextureFromSkull(position.toBlocPos()) if (text != "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQ" + "ubmV0L3RleHR1cmUvYzRkYjRhZGZhOWJmNDhmZjVkNDE3M" + "DdhZTM0ZWE3OGJkMjM3MTY1OWZjZDhjZDg5MzQ3NDlhZjRjY2U5YiJ9fX0=" diff --git a/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt index 368b06daf..776ba7f6c 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt @@ -14,7 +14,7 @@ object BlockUtils { fun LorenzVec.isInLoadedChunk(): Boolean = Minecraft.getMinecraft().theWorld.chunkProvider.provideChunk(toBlocPos()).isLoaded - fun getSkinFromSkull(position: BlockPos?): String? { + fun getTextureFromSkull(position: BlockPos?): String? { val entity = Minecraft.getMinecraft().theWorld.getTileEntity(position) as TileEntitySkull val serializeNBT = entity.serializeNBT() return serializeNBT.getCompoundTag("Owner").getCompoundTag("Properties") -- cgit