Skip to content

Commit 6bd2fdf

Browse files
authored
fix double end bug
1 parent 4fb7e1c commit 6bd2fdf

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Install [Lovely](https://github.com/ethangreen-dev/lovely-injector)
1313
Install [Steamodded](https://github.com/Steamopollys/Steamodded) (must be **1.0.0 or higher**)
1414

1515

16-
Download the newest release ([linked here](https://github.com/Toneblock/balatro-NotJustYet/releases/tag/v0.4.1)), extract the .zip, and place it into your Mods folder
16+
Download the newest release ([linked here](https://github.com/Toneblock/balatro-NotJustYet/releases/tag/v0.4.2)), extract the .zip, and place it into your Mods folder

lovely/njy_lovely.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,16 @@ position = "at"
189189
payload = '''
190190
if G.GAME.current_round.hands_left <= 0 or #G.hand.highlighted <= (G.GAME.blind and G.GAME.blind.name == 'cry-Sapphire Stamp' and 1 or 0) or G.GAME.blind.block_play then
191191
'''
192+
match_indent = true
193+
194+
# bugfix to make running out of cards properly end round (prevents double-end attempts)
195+
[[patches]]
196+
[patches.pattern]
197+
target = "game.lua"
198+
pattern = '''if #G.hand.cards < 1 and #G.deck.cards < 1 then'''
199+
position = "after"
200+
payload = '''
201+
stop_use()
202+
G.STATE = G.STATES.NEW_ROUND
203+
'''
192204
match_indent = true

main.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--- PRIORITY: 0
88
--- DISPLAY_NAME: NotJustYet
99
--- BADGE_COLOUR: ffffff
10+
--- VERSION: 0.4.2
1011

1112
----------------------------------------------
1213
------------MOD CODE -------------------------

0 commit comments

Comments
 (0)