Skip to content

Commit

Permalink
fix: Fixed structure crash. Fixes #254
Browse files Browse the repository at this point in the history
  • Loading branch information
WinDanesz committed Apr 5, 2024
1 parent 9c870fc commit 800f1dc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ public NBTTagCompound writeToNBT(NBTTagCompound compound) {
compound.setInteger("ritual_lifetime", ritualCurrentLifeTime);
}
compound.setInteger("caster_id", casterId);
// if (getCaster() != null) {
// compound.setUniqueId("caster_uuid", casterUUID);
// }
if (casterUUID == null) {
casterUUID = UUID.randomUUID();
}
compound.setTag("caster_uuid", NBTUtil.createUUIDTag(casterUUID));
compound.setInteger("rotation", direction.getIndex());
return compound;
Expand Down

0 comments on commit 800f1dc

Please sign in to comment.