fix: CastPredicate compatibility not working
Fixes https://github.com/nea89o/Firmament/issues/86
This commit is contained in:
@@ -16,7 +16,7 @@ class CastPredicate : FirmamentModelPredicate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun test(stack: ItemStack, holder: LivingEntity?): Boolean {
|
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 {
|
override fun test(stack: ItemStack): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user