Lectern controller keepalive fix

This commit is contained in:
reidbhuntley 2021-07-05 12:08:43 -04:00
parent 4801c6f73b
commit 8abdbb68f2

View file

@ -188,7 +188,7 @@ public class LinkedControllerClientHandler {
// Keepalive Pressed Keys
if (packetCooldown == 0) {
if (!pressedKeys.isEmpty()) {
AllPackets.channel.sendToServer(new LinkedControllerInputPacket(pressedKeys, true));
AllPackets.channel.sendToServer(new LinkedControllerInputPacket(pressedKeys, true, lecternPos));
packetCooldown = PACKET_RATE;
}
}