The weapon might be null
This commit is contained in:
1 parent
5cb9dfda50
commit
6e2325d346
1 file changed
+1
-1
@@ -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())));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user