Fixed a frame part NBT issue and DBC player compatibility.

This commit is contained in:
Luis C.M committed 2023-01-17 14:08:19 -06:00
1 parent 8f206ba500
commit 4e5a12690e
2 files changed
+99 -50

No files matched your search

@@ -114,10 +114,10 @@ public class FramePart implements IFramePart {
public void readFromNBT(NBTTagCompound compound){
part = EnumAnimationPart.valueOf(compound.getString("Part"));
for (int i = 0; i < 3; i++) {
rotation[0] = compound.getFloat("Rotation" + i);
rotation[i] = compound.getFloat("Rotation" + i);
}
for (int i = 0; i < 3; i++) {
pivot[0] = compound.getFloat("Pivot" + i);
pivot[i] = compound.getFloat("Pivot" + i);
}
// Customized = TRUE if Speed or Smooth Exist
@@ -138,7 +138,7 @@ public class FramePart implements IFramePart {
compound.setFloat("Rotation" + i, rotation[i]);
}
for (int i = 0; i < 3; i++) {
compound.setFloat("Pivot" + i, rotation[i]);
compound.setFloat("Pivot" + i, pivot[i]);
}
if(customized){