Fixed loss of combat tabs after recruitment drive

This commit is contained in:
Sinipelto 2024-11-14 10:22:04 +00:00 committed by Ryan
parent 876b87b72a
commit 2be5f9eac0

View file

@ -305,6 +305,8 @@ class RecruitmentDriveListeners : InteractionListener {
// Clear inventory whenever you leave the recruitment drive area
entity.inventory.clear()
entity.equipment.clear()
// Restore player normal tabs on leave
entity.interfaceManager.openDefaultTabs()
// Teleport you out if you log out. You should do this in one sitting.
if (logout) {
PacketRepository.send(MinimapState::class.java, MinimapStateContext(entity, 0))