File tree 1 file changed +4
-4
lines changed
src/main/java/lol/hyper/toolstats/events
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) {
161
161
}
162
162
163
163
// 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 )) {
166
166
return ;
167
167
}
168
168
@@ -189,8 +189,8 @@ public void onDamage(EntityDamageByBlockEvent event) {
189
189
}
190
190
191
191
// 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 )) {
194
194
return ;
195
195
}
196
196
You can’t perform that action at this time.
0 commit comments