generated from tilera/1710mod
fix: crash with CustomModspawner
This commit is contained in:
parent
1e4a415643
commit
091cb159d2
2 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,7 @@ sourceSets {
|
||||||
api {}
|
api {}
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "1.0.8"
|
version = "1.0.9"
|
||||||
group = "universalelectricity"
|
group = "universalelectricity"
|
||||||
archivesBaseName = "icbm"
|
archivesBaseName = "icbm"
|
||||||
|
|
||||||
|
|
|
@ -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()));
|
||||||
|
|
Loading…
Reference in a new issue