mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-04 06:28:51 +00:00
fix: npe in CrystalLaser
This commit is contained in:
2 files changed
+10
-7
No files matched your search
+2
-2
@@ -62,7 +62,7 @@ dependencies {
|
|||||||
compileOnly("org.jetbrains:annotations:24.1.0")
|
compileOnly("org.jetbrains:annotations:24.1.0")
|
||||||
annotationProcessor("org.jetbrains:annotations:24.1.0")
|
annotationProcessor("org.jetbrains:annotations:24.1.0")
|
||||||
|
|
||||||
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT")
|
||||||
implementation("space.arim.morepaperlib:morepaperlib:latest.release")
|
implementation("space.arim.morepaperlib:morepaperlib:latest.release")
|
||||||
|
|
||||||
implementation("com.github.milkdrinkers:crate:1.1.0")
|
implementation("com.github.milkdrinkers:crate:1.1.0")
|
||||||
@@ -148,7 +148,7 @@ tasks {
|
|||||||
|
|
||||||
runServer {
|
runServer {
|
||||||
// Configure the Minecraft version for our task.
|
// Configure the Minecraft version for our task.
|
||||||
minecraftVersion("1.20.4")
|
minecraftVersion("1.20.1")
|
||||||
|
|
||||||
// IntelliJ IDEA debugger setup: https://docs.papermc.io/paper/dev/debugging#using-a-remote-debugger
|
// IntelliJ IDEA debugger setup: https://docs.papermc.io/paper/dev/debugging#using-a-remote-debugger
|
||||||
jvmArgs("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "-DPaper.IgnoreJavaVersion=true", "-Dcom.mojang.eula.agree=true", "-DIReallyKnowWhatIAmDoingISwear")
|
jvmArgs("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "-DPaper.IgnoreJavaVersion=true", "-Dcom.mojang.eula.agree=true", "-DIReallyKnowWhatIAmDoingISwear")
|
||||||
|
|||||||
+8
-5
@@ -242,12 +242,15 @@ public class SiegeRunnable implements Runnable {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@Nullable Location loc1 = siege.getTownSpawn();
|
try {
|
||||||
@NotNull Location loc2 = new Location(loc1.getWorld(), loc1.getX(), loc1.getY() + 350D, loc1.getZ());
|
@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 = new CrystalLaser(loc1, loc2, -1, 300);
|
||||||
beam.start(AlathranWars.getInstance());
|
beam.start(AlathranWars.getInstance());
|
||||||
} catch (ReflectiveOperationException ignored) {
|
} catch (ReflectiveOperationException ignored) {
|
||||||
|
}
|
||||||
|
} catch (NoClassDefFoundError ignored1) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user