fix: CastPredicate compatibility not working

Fixes https://github.com/nea89o/Firmament/issues/86
This commit is contained in:
Linnea Gräf
2025-05-01 10:43:53 +02:00
parent 9e83bd8ae2
commit e2df31fd9f

View File

@@ -16,7 +16,7 @@ class CastPredicate : FirmamentModelPredicate {
}
override fun test(stack: ItemStack, holder: LivingEntity?): Boolean {
return (holder as? PlayerEntity)?.fishHook != null && holder.activeItem === stack
return (holder as? PlayerEntity)?.fishHook != null && holder.mainHandStack === stack
}
override fun test(stack: ItemStack): Boolean {