Buggy code:
public class Player extends MapObject { private PlayState playState ; private boolean shootUp ; private boolean shootDown ; private boolean shootLeft ; private boolean shootRight ; private ArrayList < Projectile > bullets ; private long fireTimer ; public int fireDelay ; public boolean firing ; private boolean mouseHeld ; private double angle ; private boolean isUnderEffect ; private double jumpHeightFactor ; private double birdPos ; private double healthPos ; private boolean hasBird ; private boolean birdActive ; private boolean hasArmor ; private boolean slowTime ; private boolean canGlide ; private boolean hasGun ; private int ammoCount ; private double birdX ; private double birdY ; private Explosion explosions ; private Enemy chosenEnemy ; private ArrayList < Integer > charBlurPos ; private long coolDownTime ; private Font backupFont ; private Font bannerFont ; private BufferedImage gunImage ; private int heightScore ; private ArrayList < int [ ] > bonusScores ; private double yFromBottom ; private int armorBoostHealth ; private byte blueInc ; private byte redInc ; private byte greenInc ; private boolean blueChg ; private boolean redChg ; private boolean greenChg ; private short numOfFramesToAnimHealth ; private short healthAphaVal ; private boolean hasFlashed ; private boolean isBlinking ; private boolean isFlashing ; private boolean healing ; private ArrayList < BufferedImage > heartImages ; private ArrayList < BufferedImage [ ] > playerSprites ; private ArrayList < BufferedImage [ ] > playerHurtSprites ; private BufferedImage [ ] birdPickupSprites ; private Animation birdAnimation ; private final int [ ] numFrames = new int [ ] { 1 , 4 , 3 , 3 , 4 } ; private boolean tileMapMoving ; private boolean canMove ; private static final int IDLE = 0 ; private static final int WALKING = 1 ; private static final int JUMPING = 2 ; private static final int FALLING = 3 ; private static final int LANDING = 4 ; private static final int HOVERING = 5 ; private static final int DOUBLEJUMP = 6 ; public Player ( TileMap tm , PlayState playState ) { } public void update ( ) { } public void draw ( Graphics2D g ) { } public void collided ( int type , Tile t ) { if ( type == 17 ) { playerHurt ( 1 ) ; } if ( type == 20 ) { falling = true ; currentAction = Player . JUMPING ; animation . setFrames ( playerSprites . get ( Player . JUMPING ) ) ; animation . setDelay ( 150 ) ; animation . setDone ( true ) ; width = 50 ; height = 70 ; dy = - 20.0 ; t . setAnimated ( true ) ; } <START_BUG> if ( type == 24 ) { <END_BUG> hasGun = true ; ammoCount += 50 ; t . setType ( 0 ) ; } } public void getAttack ( ) { } public void setMouseHeld ( boolean b ) { } public boolean getMouseHeld ( ) { } public void setPosition ( int x , int y ) { } public void setCanMove ( boolean val ) { } public void getMovement ( ) { } public void getAnimation ( ) { } public void moveTileMapX ( ) { } public double getCharacterY ( ) { } public void setTileMapMoving ( boolean b ) { } public int getPoints ( ) { } public void increasePoints ( int amount ) { } public ArrayList < int [ ] > getBonusScores ( ) { } public int getPlayerHealth ( ) { } public void playerHeal ( int amount ) { } public void playerHurt ( int amount ) { } public void effectStart ( int effect ) { } public void resetEffects ( ) { } public void drawEffects ( Graphics2D g ) { } public void keyPressed ( int k ) { } public void keyReleased ( int k ) { } public void collided ( MapObject m ) { } public boolean getRecovering ( ) { } public void setFiring ( boolean b ) { } public void setAngle ( double atan ) { } public double getAngle ( ) { } public ArrayList < Projectile > getBullets ( ) { } public double getTotalHeight ( ) { } public boolean onScreen ( ) { } public void setPlayState ( PlayState playState ) { } No newline ; at end ; of file ; }

Fix:
if ( type == 389 ) {