mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 22:43:56 +01:00
Fix extendo grip applying knockback on arrow or tnt damage
This commit is contained in:
parent
5d0674067f
commit
b1b771ed2e
@ -163,7 +163,7 @@ public class ExtendoGripItem extends Item {
|
||||
public static void attacksByExtendoGripHaveMoreKnockback(LivingKnockBackEvent event) {
|
||||
if (lastActiveDamageSource == null)
|
||||
return;
|
||||
Entity entity = lastActiveDamageSource.getTrueSource();
|
||||
Entity entity = lastActiveDamageSource.getImmediateSource();
|
||||
if (!(entity instanceof PlayerEntity))
|
||||
return;
|
||||
PlayerEntity player = (PlayerEntity) entity;
|
||||
|
Loading…
Reference in New Issue
Block a user