mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 15:43:42 +01:00
Fix #535
This commit is contained in:
parent
2a5a2b9e64
commit
bb5efd68f1
1 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,8 @@ public class ExtendoGripItem extends Item {
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void attacksByExtendoGripHaveMoreKnockback(LivingKnockBackEvent event) {
|
public static void attacksByExtendoGripHaveMoreKnockback(LivingKnockBackEvent event) {
|
||||||
|
if (lastActiveDamageSource == null)
|
||||||
|
return;
|
||||||
Entity entity = lastActiveDamageSource.getTrueSource();
|
Entity entity = lastActiveDamageSource.getTrueSource();
|
||||||
if (!(entity instanceof PlayerEntity))
|
if (!(entity instanceof PlayerEntity))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue