Skip to content

Commit

Permalink
Fixing issue where the nbt data wasn't being saved right.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Wuest committed Jun 25, 2020
1 parent 3c111e6 commit ad9eace
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ public Entity createEntityForWorld(World world, BlockPos pos, ICommandSender com
}

entityLiving.readEntityFromNBT(serializedEntity);
//entityLiving.deserializeNBT(serializedEntity);

// Custom NBT data was specified. Make sure to update the entity with this information.
//entityLiving = (EntityLiving)EntityList.createEntityFromNBT(serializedEntity, world);
}

world.spawnEntity(entityLiving);
Expand Down Expand Up @@ -247,8 +243,8 @@ public void writeToNBT(NBTTagCompound tag) {
tag.setInteger("timeToWaitBeforeSpawn", this.timeToWaitBeforeSpawn);
tag.setString("commandToRunAtSpawn", this.commandToRunAtSpawn);

if (this.convertedNBT != null) {
tag.setString("nbt", this.convertedNBT.toString());
if (this.nbt != null) {
tag.setString("nbt", this.nbt.toString());
}

NBTTagList additionalDrops = new NBTTagList();
Expand Down

0 comments on commit ad9eace

Please sign in to comment.