Skip to content

Commit

Permalink
Clean-up digging operation when client is disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
grepsedawk committed Jul 21, 2023
1 parent e7e3917 commit 12cd4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rosegold/control/interactions.cr
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Rosegold::Interactions
attack

spawn do
while digging?
while digging? && client.connected?
cancel = false
reached = reach_block_or_entity
sleep 1.tick
Expand Down

0 comments on commit 12cd4a5

Please sign in to comment.