Fix NPE from jobs
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>AuxProtect</groupId>
|
||||
<artifactId>AuxProtect</artifactId>
|
||||
<version>1.2.11.1</version>
|
||||
<version>1.2.11.2</version>
|
||||
<name>AuxProtect</name>
|
||||
<build>
|
||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||
|
||||
@@ -32,9 +32,9 @@ public class JobsListener implements Listener {
|
||||
}
|
||||
|
||||
private void logGain(OfflinePlayer oplayer, Job job, CurrencyType type, double value) {
|
||||
if (value < 1E-4) {
|
||||
return;
|
||||
}
|
||||
if (!EntryAction.JOBS.isEnabled()) return;
|
||||
if (value < 1E-4 || job == null) return;
|
||||
|
||||
Location location = null;
|
||||
// double boost = 1;
|
||||
if (oplayer instanceof Player player) {
|
||||
|
||||
Reference in New Issue
Block a user