Fix NPE from jobs

This commit is contained in:
Heliosares
2023-12-13 14:21:00 -05:00
parent f0072f1081
commit 56d57e3541
2 changed files with 4 additions and 4 deletions

View File

@@ -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>

View File

@@ -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) {