diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-02 16:00:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 16:00:58 +0200 |
commit | 4353efaa3d18a61f49f79273bea63303afcab7e1 (patch) | |
tree | c9813d240b1a6a87eb45755dbdc3bfcecc3612d1 /src/main/java | |
parent | 143cfe8b5a95d50057fa86658ecdc8f95f57f923 (diff) | |
download | skyhanni-4353efaa3d18a61f49f79273bea63303afcab7e1.tar.gz skyhanni-4353efaa3d18a61f49f79273bea63303afcab7e1.tar.bz2 skyhanni-4353efaa3d18a61f49f79273bea63303afcab7e1.zip |
Fix: Nicked vampire slayer (#1607)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt index 6f9932c8d..246e1d98d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt @@ -33,6 +33,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.exactPlayerEyeLocation import at.hannibal2.skyhanni.utils.toLorenzVec import net.minecraft.client.Minecraft import net.minecraft.client.entity.EntityOtherPlayerMP +import net.minecraft.client.entity.EntityPlayerSP import net.minecraft.client.renderer.GlStateManager import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.item.EntityArmorStand @@ -53,7 +54,8 @@ object VampireSlayerFeatures { private val entityList = mutableListOf<EntityLivingBase>() private val taggedEntityList = mutableListOf<Int>() private var standList = mapOf<EntityArmorStand, EntityOtherPlayerMP>() - private val username get() = LorenzUtils.getPlayerName() + // Nicked support + private val username get() = EntityUtils.getEntities<EntityPlayerSP>().firstOrNull()?.name ?: error("own player is null") private val bloodIchorTexture = "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzAzNDA5MjNhNmRlNDgyNWExNzY4MTNkMTMzNTAzZWZmMTg2ZGIwODk2ZTMyYjY3MDQ5MjhjMmEyYmY2ODQyMiJ9fX0=" private val killerSpringTexture = |