mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
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) {
|
||||
while (toggle_key.isPressed()) {
|
||||
toggle_key.setPressed(false);
|
||||
while (toggle_key.wasPressed()) {
|
||||
if (Data.isInGame()) {
|
||||
// todo move to logic.java
|
||||
if (Data.isSupportedServer()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue