The weapon might be null

This commit is contained in:
Brokkonaut
2018-07-25 17:17:29 +02:00
parent 5cb9dfda50
commit 6e2325d346

View File

@ -309,7 +309,7 @@ public class Consumer extends TimerTask {
if (victim == null || !isLogged(location.getWorld())) {
return;
}
queue.add(new KillRow(location, killer == null ? null : killer, victim, MaterialConverter.getOrAddMaterialId(weapon.getType().getKey().toString())));
queue.add(new KillRow(location, killer == null ? null : killer, victim, weapon == null ? 0 : MaterialConverter.getOrAddMaterialId(weapon.getType().getKey().toString())));
}
/**