Skip to content

Commit

Permalink
fixed bug in getresetlist function
Browse files Browse the repository at this point in the history
  • Loading branch information
Snacksy committed Dec 20, 2022
1 parent 70ccfe3 commit 12dc191
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 4 additions & 7 deletions SimpleWallScript.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
; Version 0.2 Feature comforts and perfomance improvements


; If you have rebound any key in Minecraft change them here
; If you have rebound any relevant key in Minecraft change them here
CREATE_NEW_WORLD_KEY=F6
F3_KEY=F3

; You can change initial starting hotkeys here (^ =ctrl, ! = alt, # = shift)
; hotkeys can be changed in program, but defaults can be changed here (^ =ctrl, ! = alt, # = shift)
defaultStartKey=^E
defaultResetKey=^Y

; slower computers may need to increase this value
cleanF3PauseMenuWaitTime:=300

; INSTRUCTIONS:
Expand All @@ -27,7 +28,6 @@ cleanF3PauseMenuWaitTime:=300
; After setting up MultiMC select an instance and click "Copy Instance" to create more



; ----------------------- START OF WALL CODE -----------------------
#SingleInstance, Force
SendMode Input
Expand Down Expand Up @@ -113,8 +113,6 @@ actionReset(){
for i, windowID in resetList
performKeystroke(windowID, F3_KEY, "Esc")



inGame := false
layoutChange := false
previousInstanceCount := newInstanceCount
Expand Down Expand Up @@ -142,8 +140,7 @@ getResetList(tileCount, inGame, currentGameWindow){
Loop % windowCount
{
windowID := instanceList%A_Index%
if(!inGame || windowID=currentGameWindow)
result.Push(windowID)
result.Push(windowID)
}
return result
}
Expand Down
7 changes: 7 additions & 0 deletions test.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%

n:=(true&&!false) ? "true" : "false"

MsgBox, %n%

0 comments on commit 12dc191

Please sign in to comment.