Fix rituals crashing when deserializing the owner
This commit is contained in:
parent
eaf4bfb857
commit
caab4dcbef
|
@ -98,7 +98,7 @@ public class TileMasterRitualStone extends TileTicking implements IMasterRitualS
|
||||||
public NBTTagCompound serialize(NBTTagCompound tag) {
|
public NBTTagCompound serialize(NBTTagCompound tag) {
|
||||||
String ritualId = RitualRegistry.getIdForRitual(getCurrentRitual());
|
String ritualId = RitualRegistry.getIdForRitual(getCurrentRitual());
|
||||||
if (owner != null)
|
if (owner != null)
|
||||||
tag.setUniqueId(Constants.NBT.OWNER_UUID, owner);
|
tag.setUniqueId("owner", owner);
|
||||||
tag.setString(Constants.NBT.CURRENT_RITUAL, Strings.isNullOrEmpty(ritualId) ? "" : ritualId);
|
tag.setString(Constants.NBT.CURRENT_RITUAL, Strings.isNullOrEmpty(ritualId) ? "" : ritualId);
|
||||||
if (currentRitual != null) {
|
if (currentRitual != null) {
|
||||||
NBTTagCompound ritualTag = new NBTTagCompound();
|
NBTTagCompound ritualTag = new NBTTagCompound();
|
||||||
|
|
Loading…
Reference in a new issue