- Joined
- Jul 11, 2020
- Messages
- 0
- Reaction score
- 25
- Points
- 0
@EventTarget
public void onPacket(EventSendPacket event)
{
if (event.getPacket() instanceof C03PacketPlayer)
{
C03PacketPlayer packet = (C03PacketPlayer) event.getPacket();
float nextYaw = 0.0f;
float nextPitch = 0.0f;
switch (mc.thePlayer.func_174811_aO())
{
case EAST:
{
nextYaw = 90.0f;
break;
}
case WEST:
{
nextYaw = -90.0f;
break;
}
case SOUTH:
{
nextYaw = -180.0f;
break;
}
case NORTH:
{
nextYaw = 0.0f;
break;
}
}
nextPitch = 82.8f;
if (mc.thePlayer.isSneaking())
{
nextPitch = 82.5f;
}
packet.yaw = nextYaw;
packet.pitch = nextPitch;
event.setPacket(packet);
}
}
Wieso geht mein Scaffold auf Rewi nicht?! Was soll ich an den Rotations ändern. (placedelay=200ms)
public void onPacket(EventSendPacket event)
{
if (event.getPacket() instanceof C03PacketPlayer)
{
C03PacketPlayer packet = (C03PacketPlayer) event.getPacket();
float nextYaw = 0.0f;
float nextPitch = 0.0f;
switch (mc.thePlayer.func_174811_aO())
{
case EAST:
{
nextYaw = 90.0f;
break;
}
case WEST:
{
nextYaw = -90.0f;
break;
}
case SOUTH:
{
nextYaw = -180.0f;
break;
}
case NORTH:
{
nextYaw = 0.0f;
break;
}
}
nextPitch = 82.8f;
if (mc.thePlayer.isSneaking())
{
nextPitch = 82.5f;
}
packet.yaw = nextYaw;
packet.pitch = nextPitch;
event.setPacket(packet);
}
}
Wieso geht mein Scaffold auf Rewi nicht?! Was soll ich an den Rotations ändern. (placedelay=200ms)