This commit is contained in:
simibubi 2020-12-13 18:23:45 +01:00
parent 2a5a2b9e64
commit bb5efd68f1

View file

@ -158,6 +158,8 @@ public class ExtendoGripItem extends Item {
@SubscribeEvent
public static void attacksByExtendoGripHaveMoreKnockback(LivingKnockBackEvent event) {
if (lastActiveDamageSource == null)
return;
Entity entity = lastActiveDamageSource.getTrueSource();
if (!(entity instanceof PlayerEntity))
return;