Skip to content

Commit d5ac9cc

Browse files
committed
Fix typo and inconsistent documentation
1 parent 8fcb050 commit d5ac9cc

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/main/java/com/minecrafttas/tasmod/events/EventPlaybackServer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ public interface EventPlaybackServer {
88

99
/**
1010
* Fired when {@link PlaybackControllerServer#setTASStateServer(TASstate)} is called
11-
*
12-
* @author Scribble
1311
*/
12+
@FunctionalInterface
1413
public interface EventControllerStateChange extends EventBase {
1514
/**
1615
* Fired when {@link PlaybackControllerServer#setTASStateServer(TASstate)} is called
@@ -21,13 +20,13 @@ public interface EventControllerStateChange extends EventBase {
2120
}
2221

2322
/**
24-
* Fired when a recording is cleared
23+
* Fired when a recording is cleared in {@link PlaybackControllerServer#clearInputs()}
2524
*/
2625
@FunctionalInterface
2726
public interface EventRecordClear extends EventBase {
2827

2928
/**
30-
* Fired when a recording is cleared
29+
* Fired when a recording is cleared in {@link PlaybackControllerServer#clearInputs()}
3130
*/
3231
public void onRecordingClear();
3332
}

src/main/java/com/minecrafttas/tasmod/playback/PlaybackControllerClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,15 +1015,15 @@ public void onClientPacket(PacketID id, ByteBuffer buf, String username) throws
10151015
break;
10161016

10171017
case PLAYBACK_RESTARTANDPLAY:
1018-
String finalname = ByteBufferBuilder.readString(buf);
1018+
String tasFilename = ByteBufferBuilder.readString(buf);
10191019

10201020
try {
10211021
Thread.sleep(100L);
10221022
} catch (InterruptedException e) {
10231023
e.printStackTrace();
10241024
}
10251025
Minecraft.getMinecraft().addScheduledTask(() -> {
1026-
TASmodClient.config.set(TASmodConfig.FileToOpen, finalname);
1026+
TASmodClient.config.set(TASmodConfig.FileToOpen, tasFilename);
10271027
System.exit(0);
10281028
});
10291029
break;

0 commit comments

Comments
 (0)