From bb5efd68f125616e19e1fa7ae80d00d29bed2379 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sun, 13 Dec 2020 18:23:45 +0100 Subject: [PATCH] Fix #535 --- .../create/content/curiosities/tools/ExtendoGripItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/curiosities/tools/ExtendoGripItem.java b/src/main/java/com/simibubi/create/content/curiosities/tools/ExtendoGripItem.java index 4769e08a7..396b4358c 100644 --- a/src/main/java/com/simibubi/create/content/curiosities/tools/ExtendoGripItem.java +++ b/src/main/java/com/simibubi/create/content/curiosities/tools/ExtendoGripItem.java @@ -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;