Merge pull request #751 from Weissmoon/master
Reduce sent network packets.
This commit is contained in:
commit
1a38353c78
|
@ -41,6 +41,10 @@ public class KeyInputEventHandler
|
|||
@SubscribeEvent
|
||||
public void handleKeyInputEvent(InputEvent.KeyInputEvent event)
|
||||
{
|
||||
if (getPressedKeybinding() == Key.UNKNOWN){
|
||||
return;
|
||||
}
|
||||
|
||||
if (FMLClientHandler.instance().getClient().inGameHasFocus)
|
||||
{
|
||||
if (FMLClientHandler.instance().getClientPlayerEntity() != null)
|
||||
|
|
Loading…
Reference in a new issue