mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-15 06:54:21 +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) {
|
public static void attacksByExtendoGripHaveMoreKnockback(LivingKnockBackEvent event) {
|
||||||
if (lastActiveDamageSource == null)
|
if (lastActiveDamageSource == null)
|
||||||
return;
|
return;
|
||||||
Entity entity = lastActiveDamageSource.getTrueSource();
|
Entity entity = lastActiveDamageSource.getImmediateSource();
|
||||||
if (!(entity instanceof PlayerEntity))
|
if (!(entity instanceof PlayerEntity))
|
||||||
return;
|
return;
|
||||||
PlayerEntity player = (PlayerEntity) entity;
|
PlayerEntity player = (PlayerEntity) entity;
|
||||||
|
Loading…
Reference in New Issue
Block a user