Skip to content

Commit

Permalink
Merge pull request #600 from walksanatora/do-not-grab-dragon-parts
Browse files Browse the repository at this point in the history
remove dragon parts from all zone distiliations.
  • Loading branch information
Talia-12 authored Mar 16, 2024
2 parents 1e393b8 + dc67253 commit 2d8d1ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import net.minecraft.world.entity.Entity
import net.minecraft.world.entity.LivingEntity
import net.minecraft.world.entity.animal.Animal
import net.minecraft.world.entity.animal.WaterAnimal
import net.minecraft.world.entity.boss.EnderDragonPart
import net.minecraft.world.entity.item.ItemEntity
import net.minecraft.world.entity.monster.Enemy
import net.minecraft.world.entity.player.Player
Expand Down Expand Up @@ -51,6 +52,6 @@ class OpGetEntitiesBy(val checker: Predicate<Entity>, val negate: Boolean) : Con
fun isPlayer(e: Entity): Boolean = e is Player

@JvmStatic
fun isLiving(e: Entity): Boolean = e is LivingEntity
fun isLiving(e: Entity): Boolean = (e is LivingEntity) || (e is EnderDragonPart)
}
}

0 comments on commit 2d8d1ff

Please sign in to comment.