MOVEMENT move -> input
This commit is contained in:
parent
0f7bfff5d3
commit
68e7572139
8 changed files with 190 additions and 107 deletions
|
@ -12,19 +12,9 @@ public abstract class InputMixin {
|
|||
@Inject(at = @At(value = "TAIL"), method = "tick")
|
||||
private void onTickTail(boolean slowDown, float f, CallbackInfo ci) {
|
||||
if (RepeatingMod.me.is_replaying) {
|
||||
RepeatingMod.client.player.input.sneaking = RepeatingMod.replay_sneaking;
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(at = @At(value = "HEAD"), method = "tick")
|
||||
private void onTickHead(boolean slowDown, float f, CallbackInfo ci) {
|
||||
if (RepeatingMod.me.is_recording) {
|
||||
RepeatingMod.RecordSneakEvent e = new RepeatingMod.
|
||||
RecordSneakEvent(RepeatingMod.client.player.input.sneaking);
|
||||
RepeatingMod.RecordSneakEvent l = ((RepeatingMod.RecordSneakEvent)
|
||||
RepeatingMod.me.getLastRecord("sneak"));
|
||||
if (l == null || l.sneaking != e.sneaking)
|
||||
RepeatingMod.me.recordTick(e);
|
||||
if (RepeatingMod.input_replay != null) {
|
||||
RepeatingMod.input_replay.inputCallback();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue