Skip to content

Commit

Permalink
Add PrimedTNT option to Chams (#61) (#65)
Browse files Browse the repository at this point in the history
* Add PrimedTNT option to Chams (#61)

Satisfies #61

* Sophisticate option name

I forgot to add the name change after I already staged it
  • Loading branch information
ToxicAven committed May 4, 2021
1 parent bb1af13 commit 50a28d8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import net.minecraft.client.renderer.GlStateManager
import net.minecraft.entity.Entity
import net.minecraft.entity.item.EntityEnderCrystal
import net.minecraft.entity.item.EntityItem
import net.minecraft.entity.item.EntityTNTPrimed
import net.minecraft.entity.item.EntityXPOrb
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.entity.projectile.EntityArrow
Expand All @@ -35,6 +36,7 @@ internal object Chams : Module(
private val arrows by setting("Arrows", false, { page == Page.ENTITY_TYPE && !all })
private val throwable by setting("Throwable", false, { page == Page.ENTITY_TYPE && !all })
private val items by setting("Items", false, { page == Page.ENTITY_TYPE && !all })
private val tnt by setting("Primed TNT", false, { page == Page.ENTITY_TYPE && !all })
private val crystals by setting("Crystals", false, { page == Page.ENTITY_TYPE && !all })
private val players by setting("Players", true, { page == Page.ENTITY_TYPE && !all })
private val friends by setting("Friends", false, { page == Page.ENTITY_TYPE && !all && players })
Expand Down Expand Up @@ -120,6 +122,7 @@ internal object Chams : Module(
|| throwable && entity is EntityThrowable
|| items && entity is EntityItem
|| crystals && entity is EntityEnderCrystal
|| tnt && entity is EntityTNTPrimed
|| players && entity is EntityPlayer && EntityUtils.playerTypeCheck(entity, friends, sleeping)
|| mobTypeSettings(entity, mobs, passive, neutral, hostile)
)
Expand Down

0 comments on commit 50a28d8

Please sign in to comment.