forked from virt-mirrors/Sit
use wasPressed() for better detection
This commit is contained in:
parent
0e19a288d5
commit
3f008635f0
1 changed files with 1 additions and 2 deletions
|
@ -36,8 +36,7 @@ public class Events {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void loopLogic(ClientPlayerEntity player) {
|
private static void loopLogic(ClientPlayerEntity player) {
|
||||||
while (toggle_key.isPressed()) {
|
while (toggle_key.wasPressed()) {
|
||||||
toggle_key.setPressed(false);
|
|
||||||
if (Data.isInGame()) {
|
if (Data.isInGame()) {
|
||||||
// todo move to logic.java
|
// todo move to logic.java
|
||||||
if (Data.isSupportedServer()) {
|
if (Data.isSupportedServer()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue