fix -1 pos delay
This commit is contained in:
parent
96c4ce4b9d
commit
629a44a27a
1 changed files with 13 additions and 11 deletions
|
@ -108,6 +108,7 @@ public class RepeatingMod implements ClientModInitializer {
|
||||||
menu.update_btns();
|
menu.update_btns();
|
||||||
record.clear();
|
record.clear();
|
||||||
|
|
||||||
|
if (record_pos_delay != -1) {
|
||||||
move_tick = new Thread(() -> {
|
move_tick = new Thread(() -> {
|
||||||
while (is_recording) {
|
while (is_recording) {
|
||||||
record.add(new RecordMoveEvent(client.player.getPos(),
|
record.add(new RecordMoveEvent(client.player.getPos(),
|
||||||
|
@ -120,6 +121,7 @@ public class RepeatingMod implements ClientModInitializer {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
move_tick.start();
|
move_tick.start();
|
||||||
|
}
|
||||||
|
|
||||||
sendMessage(Text.translatable("message.repeating-mod.record_start"));
|
sendMessage(Text.translatable("message.repeating-mod.record_start"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue