mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 04:22:00 +01:00
Fix extendo grip applying knockback on arrow or tnt damage
This commit is contained in:
parent
5d0674067f
commit
b1b771ed2e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue