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 {}
}
version = "1.0.8"
version = "1.0.9"
group = "universalelectricity"
archivesBaseName = "icbm"

View file

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