File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/lol/hyper/toolstats/events Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ public void onDamage(EntityDamageEvent event) {
161161 }
162162
163163 // ignore void and /kill damage
164- String cause = event .getCause (). toString (). toUpperCase ();
165- if (ignoredDamageCauses .contains (cause )) {
164+ EntityDamageEvent . DamageCause cause = event .getCause ();
165+ if (ignoredCauses .contains (cause )) {
166166 return ;
167167 }
168168
@@ -189,8 +189,8 @@ public void onDamage(EntityDamageByBlockEvent event) {
189189 }
190190
191191 // ignore void and /kill damage
192- String cause = event .getCause (). toString (). toUpperCase ();
193- if (ignoredDamageCauses .contains (cause )) {
192+ EntityDamageEvent . DamageCause cause = event .getCause ();
193+ if (ignoredCauses .contains (cause )) {
194194 return ;
195195 }
196196
You can’t perform that action at this time.
0 commit comments