mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 08:39:55 +03:00
29 lines
954 B
Diff
29 lines
954 B
Diff
--- a/com/mojang/math/Vector3f.java
|
|
+++ b/com/mojang/math/Vector3f.java
|
|
@@ -138,7 +_,7 @@
|
|
|
|
public boolean m_122278_() {
|
|
float f = this.f_122228_ * this.f_122228_ + this.f_122229_ * this.f_122229_ + this.f_122230_ * this.f_122230_;
|
|
- if ((double)f < 1.0E-5D) {
|
|
+ if (f < Float.MIN_NORMAL) { //Forge: Fix MC-239212
|
|
return false;
|
|
} else {
|
|
float f1 = Mth.m_14195_(f);
|
|
@@ -207,4 +_,16 @@
|
|
public String toString() {
|
|
return "[" + this.f_122228_ + ", " + this.f_122229_ + ", " + this.f_122230_ + "]";
|
|
}
|
|
+
|
|
+ public Vector3f(float[] values) {
|
|
+ set(values);
|
|
+ }
|
|
+ public void set(float[] values) {
|
|
+ this.f_122228_ = values[0];
|
|
+ this.f_122229_ = values[1];
|
|
+ this.f_122230_ = values[2];
|
|
+ }
|
|
+ public void setX(float x) { this.f_122228_ = x; }
|
|
+ public void setY(float y) { this.f_122229_ = y; }
|
|
+ public void setZ(float z) { this.f_122230_ = z; }
|
|
}
|