Skip to content

Commit 3aee26d

Browse files
committed
shear_entity now works on snowman/snow_golem
1 parent e9490b1 commit 3aee26d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/common/src/main/kotlin/com/willfp/libreforge/triggers/impl/TriggerShearEntity.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.willfp.libreforge.triggers.impl
22

3-
import com.willfp.eco.core.Prerequisite
43
import com.willfp.libreforge.proxy.renamedValues
54
import com.willfp.libreforge.toDispatcher
65
import com.willfp.libreforge.triggers.Trigger
@@ -23,7 +22,7 @@ object TriggerShearEntity : Trigger("shear_entity") {
2322
fun handle(event: PlayerShearEntityEvent) {
2423
val entity = event.entity as? LivingEntity ?: return
2524

26-
if (entity.type !in listOf(EntityType.SHEEP, renamedValues().entities.mooshroom)) {
25+
if (entity.type !in listOf(EntityType.SHEEP, EntityType.SNOWMAN, renamedValues().entities.mooshroom)) {
2726
return
2827
}
2928

0 commit comments

Comments
 (0)