mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Fixed a frame part NBT issue and DBC player compatibility.
This commit is contained in:
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){
|
||||
|
||||
Reference in new issue
Block a user