mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
issue where MAXes that have traversed a warp gate can not fire their arm weapon; in theory, should also have affected a few more instances (#270)
This commit is contained in:
parent
6cc6a663f5
commit
4fe871455d
|
|
@ -51,7 +51,7 @@ class AvatarConverter extends ObjectCreateConverter[Player]() {
|
|||
MakeAppearanceData(obj),
|
||||
MakeDetailedCharacterData(obj),
|
||||
MakeDetailedInventoryData(obj),
|
||||
DrawnSlot.None
|
||||
GetDrawnSlot(obj)
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
@ -365,6 +365,9 @@ object AvatarConverter {
|
|||
* @return the holster's Enumeration value
|
||||
*/
|
||||
def GetDrawnSlot(obj : Player) : DrawnSlot.Value = {
|
||||
try { DrawnSlot(obj.DrawnSlot) } catch { case _ : Exception => DrawnSlot.None }
|
||||
obj.DrawnSlot match {
|
||||
case Player.HandsDownSlot | Player.FreeHandSlot => DrawnSlot.None
|
||||
case n => DrawnSlot(n)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue