fix: crash with CustomModspawner

This commit is contained in:
Timo Ley 2024-07-11 10:08:42 +02:00
parent 1e4a415643
commit 091cb159d2
2 changed files with 4 additions and 2 deletions

View file

@ -27,7 +27,7 @@ sourceSets {
api {} api {}
} }
version = "1.0.8" version = "1.0.9"
group = "universalelectricity" group = "universalelectricity"
archivesBaseName = "icbm" archivesBaseName = "icbm"

View file

@ -665,7 +665,9 @@ public class EMissile extends Entity
@Override @Override
protected void writeEntityToNBT(final NBTTagCompound nbt) { protected void writeEntityToNBT(final NBTTagCompound nbt) {
nbt.setTag("kaiShi", this.origin.writeToNBT(new NBTTagCompound())); if (this.origin != null) {
nbt.setTag("kaiShi", this.origin.writeToNBT(new NBTTagCompound()));
}
if (this.target != null) { if (this.target != null) {
nbt.setTag("muBiao", this.target.writeToNBT(new NBTTagCompound())); nbt.setTag("muBiao", this.target.writeToNBT(new NBTTagCompound()));