@Override
	public void draw(Graphics2D g) {

		g.drawImage(gui.getSubimage(0, 0, 125, 90), GamePanel.WIDTH/2 - 150/2, GamePanel.HEIGHT/2 - 75/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 - 43) + (slot*18) : (centerX - 43) + ((slot-5)*18);
				int y = slot < 5 ? centerY + 15 : centerY + 14 + 18;

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

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

				int x = slot < 5 ? (centerX - 53) + (slot*32) : (centerX - 43) + ((slot-5)*18);
				int y = slot < 5 ? centerY - 18 : centerY;

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



		if(oven.timer > 0){
			int fireTimer = oven.currentFuelTimer;
			float x = (((float)oven.timer/(float)fireTimer)*32f);
//			System.out.println(x);
			g.drawImage(gui.getSubimage(128, (int)x, 15, 32), centerX-73, centerY+16+(int)x, null);

		}

		super.draw(g);

		oven.update();
	}