Buggy code:
private boolean members = true ; private final Appearance appearance = new Appearance ( ) ; private final Container equipment = new Container ( Type . STANDARD , Equipment . SIZE ) ; private final Skills skills = new Skills ( this ) ; private final Container inventory = new Container ( Type . STANDARD , Inventory . SIZE ) ; private final Container bank = new Container ( Type . ALWAYS_STACK , Bank . SIZE ) ; private final Container other = new Container ( Type . STANDARD , Inventory . SIZE ) ; private final Settings settings = new Settings ( ) ; private List < Long > friends = new LinkedList < Long > ( ) ; private List < Long > ignores = new LinkedList < Long > ( ) ; private PlayerTickTask tickTask = new PlayerTickTask ( this ) ; private ConsecutiveTask updateTask = new ConsecutiveTask ( new PlayerUpdateTask ( this ) , new NPCUpdateTask ( this ) ) ; private int health = ( getSkills ( ) . getLevel ( HITPOINTS ) ) * 10 ; private Packet cachedUpdateBlock ; private boolean ammoUsage ; private int [ ] bonus = new int [ 18 ] ; private int viewingShop = - 1 ; private boolean [ ] prayers = new boolean [ 20 ] ; private byte prayBook ; private double drainRate ; private byte spellBook ; private byte headIcon = - 1 ; private byte skullIcon = - 1 ; private byte foodTimer ; private byte potionTimer ; private int attackEmote ; private int defEmote ; public Player ( PlayerDetails details ) { } public RequestManager getRequestManager ( ) { } public long getNameAsLong ( ) { } public Settings getSettings ( ) { } public void write ( Packet packet ) { } public Container getBank ( ) { } public InterfaceState getInterfaceState ( ) { } public boolean hasCachedUpdateBlock ( ) { } public void setCachedUpdateBlock ( Packet cachedUpdateBlock ) { } public Packet getCachedUpdateBlock ( ) { } public void resetCachedUpdateBlock ( ) { } public ChatMessage getCurrentChatMessage ( ) { } public void setCurrentChatMessage ( ChatMessage currentChatMessage ) { } public Queue < ChatMessage > getChatMessageQueue ( ) { } public Queue < Packet > getQueuedPackets ( ) { } public Appearance getAppearance ( ) { } public Container getEquipment ( ) { } public Skills getSkills ( ) { } public ActionSender getActionSender ( ) { } public ISAACCipher getInCipher ( ) { } public ISAACCipher getOutCipher ( ) { } public String getName ( ) { } public String getPassword ( ) { } public void setPassword ( String pass ) { } public int getUID ( ) { } public IoSession getSession ( ) { } public void setRights ( Player . Rights rights ) { } public Player . Rights getRights ( ) { } public boolean isMembers ( ) { } public void setMembers ( boolean members ) { } @ Override public String toString ( ) { } public void setActive ( boolean active ) { } public boolean isActive ( ) { } public ActionQueue getActionQueue ( ) { } public Container getInventory ( ) { } public List < Long > getIgnores ( ) { } public List < Long > getFriends ( ) { } @ Override public void deserialize ( IoBuffer buf ) { this . name = NameUtils . formatNameForProtocol ( IoBufferUtils . getRS2String ( buf ) ) ; this . nameLong = NameUtils . nameToLong ( this . name ) ; this . password = IoBufferUtils . getRS2String ( buf ) ; this . rights = Player . Rights . getRights ( buf . getUnsigned ( ) ) ; this . members = ( buf . getUnsigned ( ) ) == 1 ; <START_BUG> this . getWalkingQueue ( ) . setRunEnergy ( buf . getUnsigned ( ) ) ; <END_BUG> this . spellBook = buf . get ( ) ; this . prayBook = buf . get ( ) ; this . health = buf . getShort ( ) ; setLocation ( Location . create ( buf . getUnsignedShort ( ) , buf . getUnsignedShort ( ) , buf . getUnsigned ( ) ) ) ; int [ ] look = new int [ 13 ] ; for ( int i = 0 ; i < 13 ; i ++ ) { look [ i ] = buf . getUnsigned ( ) ; } appearance . setLook ( look ) ; setFightStyle ( buf . get ( ) ) ; setPoisDmg ( buf . get ( ) ) ; setFightIndex ( buf . get ( ) ) ; for ( int i = 0 ; i < ( settings . getPrivateChatSetting ( ) . length ) ; i ++ ) settings . getPrivateChatSetting ( ) [ i ] = buf . get ( ) ; for ( int i = 0 ; i < ( Equipment . SIZE ) ; i ++ ) { int id = buf . getUnsignedShort ( ) ; if ( id != 65535 ) { int amt = buf . getInt ( ) ; int hit = buf . getUnsignedShort ( ) ; Item item = new Item ( id , amt , hit ) ; equipment . set ( i , item ) ; } } for ( int i = 0 ; i < ( Skills . SKILL_COUNT ) ; i ++ ) { skills . setSkill ( i , buf . getUnsigned ( ) , buf . getDouble ( ) ) ; } for ( int i = 0 ; i < ( Inventory . SIZE ) ; i ++ ) { int id = buf . getUnsignedShort ( ) ; if ( id != 65535 ) { int amt = buf . getInt ( ) ; int hit = buf . getUnsignedShort ( ) ; Item item = new Item ( id , amt , hit ) ;

Fix:
this . getWalkingQueue ( ) . setRunEnergy ( buf . getUnsignedShort ( ) ) ;