mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-28 19:47:55 +01:00
Add missing UserManager check
Caused an java.lang.IndexOutOfBoundsException: Index: 0 Fixes #2335
This commit is contained in:
parent
b3cd5486d6
commit
5d246d2701
@ -52,6 +52,10 @@ public class TrackedTamingEntity extends BukkitRunnable {
|
||||
CombatUtils.dealDamage(livingEntity, livingEntity.getMaxHealth(), DamageCause.SUICIDE, livingEntity);
|
||||
}
|
||||
|
||||
if (!UserManager.hasPlayerDataKey(owner)) {
|
||||
return;
|
||||
}
|
||||
|
||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(owner);
|
||||
TamingManager tamingManager = mcMMOPlayer.getTamingManager();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user