Moved NPC puppet data to display data.

Improved mixin functionality, offsets and rotations always reset if the puppet "job" (not a job anymore, always in display) is disabled.
This commit is contained in:
Luis C.M committed 2023-01-11 19:12:53 -06:00
1 parent 974bf2ca66
commit 8905f5f42e
14 files changed
+325 -197

No files matched your search

@@ -1548,11 +1548,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
jobInterface.writeToNBT(bard);
compound.setTag("Bard", bard);
}
if(advanced.job == EnumJobType.Puppet){
NBTTagCompound bard = new NBTTagCompound();
jobInterface.writeToNBT(bard);
compound.setTag("Puppet", bard);
}
if(advanced.role == EnumRoleType.Companion){
NBTTagCompound bard = new NBTTagCompound();
roleInterface.writeToNBT(bard);
@@ -1588,10 +1583,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
NBTTagCompound bard = compound.getCompoundTag("Bard");
jobInterface.readFromNBT(bard);
}
if(advanced.job == EnumJobType.Puppet){
NBTTagCompound puppet = compound.getCompoundTag("Puppet");
jobInterface.readFromNBT(puppet);
}
if(advanced.role == EnumRoleType.Companion){
NBTTagCompound puppet = compound.getCompoundTag("Companion");
roleInterface.readFromNBT(puppet);