From feff9b35404c11bf7cc982bdd4aee6aa8d3f2617 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 4 Jan 2025 12:32:22 -0600 Subject: [PATCH] cant get XP for suicide --- src/engine/objects/Experience.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/objects/Experience.java b/src/engine/objects/Experience.java index ccb8cd8c..9aedbbba 100644 --- a/src/engine/objects/Experience.java +++ b/src/engine/objects/Experience.java @@ -346,6 +346,9 @@ public class Experience { if (killer == null || mob == null) return; + if(killer.equals(mob)) + return; + double grantedExperience = 0.0; if (g != null) { // Do group EXP stuff