Skip to content

Commit

Permalink
Merge pull request #84 from thmsndk/patch-1
Browse files Browse the repository at this point in the history
When Fishing or Mining something that uses `open` keep the phrase
  • Loading branch information
kaansoral authored Feb 21, 2024
2 parents cc47175 + 3a9bf5d commit 8e42ce7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion node/server_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,15 @@ function exchange(player, name, args) {
bundle: drop[1] == "cxbundle",
});
} else if (drop[1] == "open") {
exchange(player, drop[2]);
//switch (args.phrase) {
// case "Fished":
// args.phrase = `Fished ${drop[2]} and got`;
// break;
// case "Mined":
// args.phrase = `Mined ${drop[2]} and got`;
// break;
//}
exchange(player, drop[2], args);
} else {
var item = create_new_item(drop[1], drop[2]);
var prop = undefined;
Expand Down

0 comments on commit 8e42ce7

Please sign in to comment.