Mining Fixes | Yell Command Fix (#420)

* Fixed Yell Command

* Added Mining Sounds. Fixed Addy and Mith Pickages.
This commit is contained in:
Peter Farber
2020-09-29 11:57:10 -04:00
committed by GitHub
parent dbb96f1257
commit ebd55e6e8d
2 changed files with 5 additions and 3 deletions
@@ -37,8 +37,8 @@ public class Mining {
{1265, 1, 1, 625}, //Bronze {1265, 1, 1, 625}, //Bronze
{1267, 1, 2, 626}, //Iron {1267, 1, 2, 626}, //Iron
{1269, 6, 3, 627}, //Steel {1269, 6, 3, 627}, //Steel
{1271, 31, 5, 629}, //Addy {1273, 21, 4, 629}, //Mithril
{1273, 21, 4, 628}, //Mithril {1271, 31, 5, 628}, //Addy
{1275, 41, 6, 624}, //Rune {1275, 41, 6, 624}, //Rune
}; };
@@ -158,6 +158,7 @@ public class Mining {
public void execute(CycleEventContainer container) { public void execute(CycleEventContainer container) {
if (c.isMining) { if (c.isMining) {
c.startAnimation(Pick_Settings[c.miningAxe][3]); c.startAnimation(Pick_Settings[c.miningAxe][3]);
c.getPacketSender().sendSound(432, 100, 0);
} else { } else {
container.stop(); container.stop();
} }
@@ -202,6 +203,7 @@ public class Mining {
} }
player.startAnimation(Pick_Settings[player.miningAxe][3]); player.startAnimation(Pick_Settings[player.miningAxe][3]);
player.getPacketSender().sendSound(432, 100, 0);
player.isMining = true; player.isMining = true;
repeatAnimation(player); repeatAnimation(player);
player.rockX = objectX; player.rockX = objectX;
@@ -54,7 +54,7 @@ public class Commands implements PacketType {
if (player.playerRights <= 1) { if (player.playerRights <= 1) {
delay = 30000; delay = 30000;
} }
if (!AntiSpam.blockedWords(player, playerCommand.substring(5), true)) { if (!AntiSpam.blockedWords(player, arguments[0].substring(5), true)) {
return; return;
} }
if (Connection.isMuted(player)) { if (Connection.isMuted(player)) {