Remove colliding aliases for LocationY and Yaw due to Y in TypePS.

This commit is contained in:
Olof Larsson 2015-12-09 11:25:00 +01:00
parent a524d2ebbc
commit f45688aae6

View File

@ -43,9 +43,9 @@ public class TypePS extends TypeAbstract<PS>
// 34 13 79 (standard one) // 34 13 79 (standard one)
// pitch14.5 // pitch14.5
// worldEllador,yaw14, // worldEllador,yaw14,
// x15,y18,z8003 // lx15,ly18,lz8003
// x15 y32 z99 wEllador // lx15 ly32 lz99 wEllador
// x:15 y:32 z:99 w:Ellador // lx:15 ly:32 lz:99 w:Ellador
// We get the sender ps // We get the sender ps
PS senderPs = new PSBuilder().build(); PS senderPs = new PSBuilder().build();
@ -136,21 +136,21 @@ public class TypePS extends TypeAbstract<PS>
something = true; something = true;
} }
value = getValue(part, PS.NAME_SERIALIZED_LOCATIONX, PS.NAME_FULL_LOCATIONX, "x"); value = getValue(part, PS.NAME_SERIALIZED_LOCATIONX, PS.NAME_FULL_LOCATIONX);
if (value != null) if (value != null)
{ {
ret.locationX(TypeDouble.get().read(value, sender)); ret.locationX(TypeDouble.get().read(value, sender));
something = true; something = true;
} }
value = getValue(part, PS.NAME_SERIALIZED_LOCATIONY, PS.NAME_FULL_LOCATIONY, "y"); value = getValue(part, PS.NAME_SERIALIZED_LOCATIONY, PS.NAME_FULL_LOCATIONY);
if (value != null) if (value != null)
{ {
ret.locationY(TypeDouble.get().read(value, sender)); ret.locationY(TypeDouble.get().read(value, sender));
something = true; something = true;
} }
value = getValue(part, PS.NAME_SERIALIZED_LOCATIONZ, PS.NAME_FULL_LOCATIONZ, "z"); value = getValue(part, PS.NAME_SERIALIZED_LOCATIONZ, PS.NAME_FULL_LOCATIONZ);
if (value != null) if (value != null)
{ {
ret.locationZ(TypeDouble.get().read(value, sender)); ret.locationZ(TypeDouble.get().read(value, sender));