@@ -85,7 +85,7 @@ public Entity getEntity(PacketEvent event) {
85
85
* @return The current X
86
86
*/
87
87
public double getX () {
88
- return MAJOR_VERSION >= 9 ? handle .getDoubles ().read (0 ) : handle .getIntegers ().read (1 ) / 32D ;
88
+ return MINOR_VERSION >= 9 ? handle .getDoubles ().read (0 ) : handle .getIntegers ().read (1 ) / 32D ;
89
89
}
90
90
91
91
/**
@@ -94,7 +94,7 @@ public double getX() {
94
94
* @param value - new value.
95
95
*/
96
96
public void setX (double value ) {
97
- if (MAJOR_VERSION >= 9 ) handle .getDoubles ().write (0 , value );
97
+ if (MINOR_VERSION >= 9 ) handle .getDoubles ().write (0 , value );
98
98
else handle .getIntegers ().write (1 , ConversionUtil .floor (value * 32 ));
99
99
}
100
100
@@ -106,7 +106,7 @@ public void setX(double value) {
106
106
* @return The current y
107
107
*/
108
108
public double getY () {
109
- return MAJOR_VERSION >= 9 ? handle .getDoubles ().read (1 ) : handle .getIntegers ().read (2 ) / 32D ;
109
+ return MINOR_VERSION >= 9 ? handle .getDoubles ().read (1 ) : handle .getIntegers ().read (2 ) / 32D ;
110
110
}
111
111
112
112
/**
@@ -115,7 +115,7 @@ public double getY() {
115
115
* @param value - new value.
116
116
*/
117
117
public void setY (double value ) {
118
- if (MAJOR_VERSION >= 9 ) handle .getDoubles ().write (1 , value );
118
+ if (MINOR_VERSION >= 9 ) handle .getDoubles ().write (1 , value );
119
119
else handle .getIntegers ().write (2 , ConversionUtil .floor (value * 32 ));
120
120
}
121
121
@@ -127,7 +127,7 @@ public void setY(double value) {
127
127
* @return The current z
128
128
*/
129
129
public double getZ () {
130
- return MAJOR_VERSION >= 9 ? handle .getDoubles ().read (2 ) : handle .getIntegers ().read (3 ) / 32D ;
130
+ return MINOR_VERSION >= 9 ? handle .getDoubles ().read (2 ) : handle .getIntegers ().read (3 ) / 32D ;
131
131
}
132
132
133
133
/**
@@ -136,7 +136,7 @@ public double getZ() {
136
136
* @param value - new value.
137
137
*/
138
138
public void setZ (double value ) {
139
- if (MAJOR_VERSION >= 9 ) handle .getDoubles ().write (2 , value );
139
+ if (MINOR_VERSION >= 9 ) handle .getDoubles ().write (2 , value );
140
140
else handle .getIntegers ().write (3 , ConversionUtil .floor (value * 32 ));
141
141
}
142
142
@@ -148,7 +148,7 @@ public void setZ(double value) {
148
148
* @return The current Count
149
149
*/
150
150
public int getCount () {
151
- return handle .getIntegers ().read (MAJOR_VERSION >= 9 ? 1 : 4 );
151
+ return handle .getIntegers ().read (MINOR_VERSION >= 9 ? 1 : 4 );
152
152
}
153
153
154
154
/**
@@ -157,6 +157,6 @@ public int getCount() {
157
157
* @param value - new value.
158
158
*/
159
159
public void setCount (int value ) {
160
- handle .getIntegers ().write (MAJOR_VERSION >= 9 ? 1 : 4 , value );
160
+ handle .getIntegers ().write (MINOR_VERSION >= 9 ? 1 : 4 , value );
161
161
}
162
162
}
0 commit comments