geforkt von Mirrors/Paper
Add fast alternative constructor for Rotations
Dieser Commit ist enthalten in:
Ursprung
d0185eb56e
Commit
28e1766b3b
21
paper-server/patches/sources/net/minecraft/core/Rotations.java.patch
Normale Datei
21
paper-server/patches/sources/net/minecraft/core/Rotations.java.patch
Normale Datei
@ -0,0 +1,21 @@
|
||||
--- a/net/minecraft/core/Rotations.java
|
||||
+++ b/net/minecraft/core/Rotations.java
|
||||
@@ -34,6 +34,18 @@
|
||||
this(serialized.getFloat(0), serialized.getFloat(1), serialized.getFloat(2));
|
||||
}
|
||||
|
||||
+ // Paper start - faster alternative constructor
|
||||
+ private Rotations(float x, float y, float z, Void dummy_var) {
|
||||
+ this.x = x;
|
||||
+ this.y = y;
|
||||
+ this.z = z;
|
||||
+ }
|
||||
+
|
||||
+ public static Rotations createWithoutValidityChecks(float x, float y, float z) {
|
||||
+ return new Rotations(x, y, z, null);
|
||||
+ }
|
||||
+ // Paper end - faster alternative constructor
|
||||
+
|
||||
public ListTag save() {
|
||||
ListTag listTag = new ListTag();
|
||||
listTag.add(FloatTag.valueOf(this.x));
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren