mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-01-08 12:08:04 -05:00
Closes issue #87
This commit is contained in:
parent
407d0f0f61
commit
d523d56457
@ -56,21 +56,6 @@ public class InvActionHandler implements PacketHandler {
|
||||
+ item.getDef().getCommand()
|
||||
+ "] at: " + player.getX() + "/" + player.getY()));
|
||||
|
||||
if (item.getID() == 1263) {
|
||||
// player.resetPath(); // This isn't how it's done in RSC
|
||||
// player.setBusy(true); // Shouldn't be here
|
||||
player.getActionSender()
|
||||
.sendMessage("You rest in the sleeping bag");
|
||||
showBubble(player, item);
|
||||
player.getActionSender().sendEnterSleep();
|
||||
// player.setFatigue(0);
|
||||
// player.getActionSender().sendFatigue();
|
||||
// player.getActionSender().sendMessage("You wake up - feeling refreshed");
|
||||
// player.isSleeping = true;
|
||||
// player.setBusy(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.isBusy()) {
|
||||
if (player.inCombat()) {
|
||||
player.getActionSender().sendMessage(
|
||||
@ -79,6 +64,22 @@ public class InvActionHandler implements PacketHandler {
|
||||
return;
|
||||
}// sip
|
||||
player.resetAll();
|
||||
|
||||
if (item.getID() == 1263) {
|
||||
// player.resetPath(); // This isn't how it's done in RSC
|
||||
// player.setBusy(true); // Shouldn't be here
|
||||
player.getActionSender()
|
||||
.sendMessage("You rest in the sleeping bag");
|
||||
showBubble(player, item);
|
||||
player.getActionSender().sendEnterSleep();
|
||||
player.setSleeping(true);
|
||||
// player.setFatigue(0);
|
||||
// player.getActionSender().sendFatigue();
|
||||
// player.getActionSender().sendMessage("You wake up - feeling refreshed");
|
||||
// player.isSleeping = true;
|
||||
// player.setBusy(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (World.getQuestManager().handleUseItem(item, player))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user