mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Saved enabled to NBT
This commit is contained in:
1 parent
074f3ee88b
commit
8e3440bc73
1 file changed
+3
@@ -22,6 +22,7 @@ public class ModelPartAnimate {
|
||||
|
||||
public NBTTagCompound writeNBT() {
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
compound.setBoolean("Enabled", enabled);
|
||||
compound.setFloat("RotationX", rotationX);
|
||||
compound.setFloat("RotationY", rotationY);
|
||||
compound.setFloat("RotationZ", rotationZ);
|
||||
@@ -38,6 +39,8 @@ public class ModelPartAnimate {
|
||||
}
|
||||
|
||||
public void readNBT(NBTTagCompound compound) {
|
||||
enabled = compound.getBoolean("Enabled");
|
||||
|
||||
rotationX = compound.getFloat("RotationX");
|
||||
rotationY = compound.getFloat("RotationY");
|
||||
rotationZ = compound.getFloat("RotationZ");
|
||||
|
||||
Reference in new issue
Block a user