fixed 1.15 positioning
This commit is contained in:
1 parent
cf53ee72e0
commit
ada89c1f7e
2 files changed
+12
-8
No files matched your search
@@ -444,6 +444,7 @@ public class EntityValue extends Value
|
||||
return;
|
||||
if (e instanceof ServerPlayerEntity)
|
||||
{
|
||||
|
||||
// TODO next - figure out proper way of informting client about pos changes
|
||||
//((ServerPlayerEntity) e).networkHandler.requestTeleport(e.x, e.y, e.z, e.yaw, e.pitch);
|
||||
Set<PlayerPositionLookS2CPacket.Flag> set_1 = EnumSet.noneOf(PlayerPositionLookS2CPacket.Flag.class);
|
||||
@@ -456,15 +457,18 @@ public class EntityValue extends Value
|
||||
float prevYaw = e.yaw;
|
||||
float prevPitch = e.pitch;*/
|
||||
|
||||
e.setPositionAnglesAndUpdate(x, y, z, yaw, pitch);
|
||||
//((ServerPlayerEntity)e).networkHandler.teleportRequest(x - prevX, y - prevY, z - prevZ, yaw - prevYaw, pitch - prevPitch, set_1);
|
||||
((ServerPlayerEntity)e).networkHandler.teleportRequest(x, y, z, yaw, pitch, set_1);
|
||||
|
||||
/*e.setPositionAnglesAndUpdate(x, y, z, yaw, pitch);
|
||||
((ServerPlayerEntity) e).networkHandler.sendPacket(new PlayerPositionLookS2CPacket(
|
||||
x,// - prevX,
|
||||
y,// - prevY,
|
||||
z,// - prevZ,
|
||||
yaw,// - prevYaw,
|
||||
pitch,// - prevPitch,
|
||||
x - prevX,
|
||||
y - prevY,
|
||||
z - prevZ,
|
||||
yaw - prevYaw,
|
||||
pitch - prevPitch,
|
||||
set_1, -1)
|
||||
);
|
||||
);*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user