Skip to content

Commit

Permalink
Fixed stuff I stumbled upon
Browse files Browse the repository at this point in the history
  • Loading branch information
Scribble authored and Scribble committed Nov 25, 2018
1 parent 31e4e7e commit 6e2a28d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/tr7zw/tas/TAS.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void onMenu(net.minecraftforge.client.event.GuiOpenEvent ev)
}

public Recorder recorder = null;

@SubscribeEvent
public void onChatSend(ServerChatEvent ev)
{
Expand Down Expand Up @@ -164,7 +164,7 @@ else if (args.length == 2){ //Check for bad characters in filenames
||FileName.contains("|")
||FileName.contains("\"")
||FileName.contains(":")){
sendMessage("§cInvalid character(s) for your filename");
sendMessage(TextFormatting.RED+"Invalid character(s) for your filename");
FileName="null";
genname=true;
return;
Expand Down Expand Up @@ -194,6 +194,7 @@ else if (args.length == 2){ //Check for bad characters in filenames
}
sendMessage("Stopped the tas recording!");
MinecraftForge.EVENT_BUS.unregister(recorder);

if (genname==true||FileName.equals("null")){
File file = new File(Minecraft.getMinecraft().mcDataDir, "saves" + File.separator +
Minecraft.getMinecraft().getIntegratedServer().getFolderName() + File.separator + "recording_" + System.currentTimeMillis() +".tas");
Expand Down
1 change: 1 addition & 0 deletions src/main/java/de/tr7zw/tas/TASInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void updatePlayerMoveState() { //When done playing, the game will paus
KeyBinding.setKeyBindState(29, frame.sprint); //Read Sprint Key from File
mc.player.inventory.currentItem=frame.slot; //Read Inventory Slot from File etc...

InvCont=1;

this.moveStrafe = 0.0F;
this.moveForward = 0.0F;
Expand Down

0 comments on commit 6e2a28d

Please sign in to comment.