mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 22:14:45 +00:00
fix: npe in CrystalLaser
This commit is contained in:
2 files changed
+10
-7
No files matched your search
+8
-5
@@ -242,12 +242,15 @@ public class SiegeRunnable implements Runnable {
|
||||
return;
|
||||
|
||||
try {
|
||||
@Nullable Location loc1 = siege.getTownSpawn();
|
||||
@NotNull Location loc2 = new Location(loc1.getWorld(), loc1.getX(), loc1.getY() + 350D, loc1.getZ());
|
||||
try {
|
||||
@Nullable Location loc1 = siege.getTownSpawn();
|
||||
@NotNull Location loc2 = new Location(loc1.getWorld(), loc1.getX(), loc1.getY() + 350D, loc1.getZ());
|
||||
|
||||
beam = new CrystalLaser(loc1, loc2, -1, 300);
|
||||
beam.start(AlathranWars.getInstance());
|
||||
} catch (ReflectiveOperationException ignored) {
|
||||
beam = new CrystalLaser(loc1, loc2, -1, 300);
|
||||
beam.start(AlathranWars.getInstance());
|
||||
} catch (ReflectiveOperationException ignored) {
|
||||
}
|
||||
} catch (NoClassDefFoundError ignored1) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user