when fishing or mining open a drop list preserve the fishing or mining phrase

This commit is contained in:
thmsndk
2024-02-15 09:44:50 +01:00
committed by GitHub
parent 99a359433c
commit 3a9bf5d998
+8 -8
View File
@@ -3452,14 +3452,14 @@ function exchange(player, name, args) {
bundle: drop[1] == "cxbundle", bundle: drop[1] == "cxbundle",
}); });
} else if (drop[1] == "open") { } else if (drop[1] == "open") {
switch (args.phrase) { //switch (args.phrase) {
case "Fished": // case "Fished":
args.phrase = `Fished ${drop[2]} and got`; // args.phrase = `Fished ${drop[2]} and got`;
break; // break;
case "Mined": // case "Mined":
args.phrase = `Mined ${drop[2]} and got`; // args.phrase = `Mined ${drop[2]} and got`;
break; // break;
} //}
exchange(player, drop[2], args); exchange(player, drop[2], args);
} else { } else {
var item = create_new_item(drop[1], drop[2]); var item = create_new_item(drop[1], drop[2]);