diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-07 02:27:43 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-07 02:27:43 +0100 |
commit | 8bfeb09e1a89293ddceebda55624747c9cb43f69 (patch) | |
tree | 57230d9b679ce86b86fdab03cbf388074a9b46ce /src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt | |
parent | cbbcdccf949cba0f152cb52a18b8e02c4d6f3b0e (diff) | |
download | skyhanni-8bfeb09e1a89293ddceebda55624747c9cb43f69.tar.gz skyhanni-8bfeb09e1a89293ddceebda55624747c9cb43f69.tar.bz2 skyhanni-8bfeb09e1a89293ddceebda55624747c9cb43f69.zip |
Create misc package for the features.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt b/src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt deleted file mode 100644 index 1a1a0f6c7..000000000 --- a/src/main/java/at/hannibal2/skyhanni/features/ExpBottleOnGroundHider.kt +++ /dev/null @@ -1,20 +0,0 @@ -package at.hannibal2.skyhanni.features - -import at.hannibal2.skyhanni.SkyHanniMod -import at.hannibal2.skyhanni.events.CheckRenderEntityEvent -import at.hannibal2.skyhanni.utils.LorenzUtils -import net.minecraft.entity.item.EntityXPOrb -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent - -class ExpBottleOnGroundHider { - - @SubscribeEvent - fun onCheckRender(event: CheckRenderEntityEvent<*>) { - if (!LorenzUtils.inSkyblock) return - if (!SkyHanniMod.feature.misc.hideExpBottles) return - - if (event.entity is EntityXPOrb) { - event.isCanceled = true - } - } -}
\ No newline at end of file |