From 517db573312bf4b04f79d5e7abf80e8f10918e77 Mon Sep 17 00:00:00 2001 From: songoda Date: Sat, 22 Jun 2019 05:22:36 -0400 Subject: [PATCH] Added null check for jobs reborn. --- .../java/com/songoda/ultimatestacker/entity/EntityStack.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java b/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java index 217af48..e4574e7 100644 --- a/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java +++ b/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java @@ -118,6 +118,7 @@ public class EntityStack { killedLocation.getWorld().spawn(killedLocation, ExperienceOrb.class).setExperience(droppedExp * amount); + if (killed.getKiller() == null) return; UltimateStacker.getInstance().addExp(killed.getKiller(), this); }