Skip to content

Commit

Permalink
Fixed wrong container error message being used for ContainerResult.SL…
Browse files Browse the repository at this point in the history
…OT_OCCUPIED
  • Loading branch information
madsboddum committed Jul 1, 2024
1 parent 6722a59 commit 4021345
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class TransferItemCallback : ICmdCallback {
}

ContainerResult.SLOT_OCCUPIED -> {
SystemMessageIntent(player, "@container_error_message:container08").broadcast()
SystemMessageIntent(player, "@container_error_message:container04").broadcast()
player.sendPacket(PlayMusicMessage(0, "sound/ui_negative.snd", 1, false))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,18 @@ protected synchronized void transferItem(CreatureObject looter, SWGObject item)
new SystemMessageIntent(player, "@container_error_message:container03").broadcast();
player.sendPacket(new PlayMusicMessage(0, "sound/ui_danger_message.snd", 1, false));
break;
case NO_PERMISSION, SLOT_OCCUPIED:
case NO_PERMISSION:
new SystemMessageIntent(player, "@container_error_message:container08").broadcast();
player.sendPacket(new PlayMusicMessage(0, "sound/ui_negative.snd", 1, false));
break;
case SLOT_NO_EXIST:
new SystemMessageIntent(player, "@container_error_message:container06").broadcast();
player.sendPacket(new PlayMusicMessage(0, "sound/ui_negative.snd", 1, false));
break;
case SLOT_OCCUPIED:
new SystemMessageIntent(player, "@container_error_message:container04").broadcast();
player.sendPacket(new PlayMusicMessage(0, "sound/ui_negative.snd", 1, false));
break;
}
}

Expand Down

0 comments on commit 4021345

Please sign in to comment.