@Override
	public void draw(Graphics2D g) {

		g.drawImage(img.getSubimage(0, 0, 100, 108), GamePanel.WIDTH/2 - 150/2, GamePanel.HEIGHT/2 - 75/2 ,null);

		int time = lantern.burnTime/20;
		int minutes = time/60;
		int seconds = time%60;
		String sec = seconds < 10 ? "0"+seconds : ""+seconds;

		g.drawString(minutes+":"+sec, centerX +1, centerY-25);
		
		if(lantern != null)
			if(lantern.isLit())
				g.drawImage(img.getSubimage(100, 0, 48, 62), GamePanel.WIDTH/2 - 128/2, GamePanel.HEIGHT/2 - 68/2 ,null);

		for(int slot = 0; slot < player.getInventory().getItems().length; slot++){
			ItemStack i = player.getStackInSlot(slot);
			if(i != null){

				int x = slot < 5 ? (centerX - 73) + (slot*18) : (centerX - 73) + ((slot-5)*18);
				int y = slot < 5 ? centerY + 35 : centerY + 35 + 18;

				i.getItem().draw(g, x, y, i);
			}
		}

		ItemStack i = secondairyInventory.getStackInSlot(0);
		if(i != null){
			int x = centerX - 48;
			int y = centerY - 5;
			i.getItem().draw(g, x, y, i);
		}
		super.draw(g);
		lantern.update();
	}