mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 23:04:08 +00:00
Made setRotation() function in ModelRotatePart clamp float values.
This commit is contained in:
1 parent
992e6fd169
commit
9a77e2f146
1 file changed
+3
-3
@@ -25,9 +25,9 @@ public class ModelRotatePart implements IModelRotatePart {
|
||||
}
|
||||
|
||||
public void setRotation(float x, float y, float z) {
|
||||
this.rotationX = x;
|
||||
this.rotationY = y;
|
||||
this.rotationZ = z;
|
||||
this.rotationX = ValueUtil.correctFloat(x, -0.5f, 0.5f);
|
||||
this.rotationY = ValueUtil.correctFloat(y, -0.5f, 0.5f);
|
||||
this.rotationZ = ValueUtil.correctFloat(z, -0.5f, 0.5f);
|
||||
}
|
||||
|
||||
public float getRotateX() {
|
||||
|
||||
Reference in new issue
Block a user