@Override
	public void draw(Graphics2D g) {

		g.drawImage(Images.loadImage("/gui/crafting.png").getSubimage(0, 0, 96, 106), centerX - (96/2), centerY - (106/2),96,106,null);

		for(Button b : buttonList){
			b.draw(g);
		}

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

				int x = slot < 5 ? (centerX - 40) + (slot*getSlotSpacingX()) : (centerX - 40) + ((slot-5)*getSlotSpacingX());
				int y = slot < 5 ? centerY + 19 : centerY + 19 + getSlotSpacingY();

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

		int i = 0;
		for(ItemStack stack : Crafting.getRecipe(slot_index)){
			if(stack != null){
				stack.getItem().draw(g, centerX + 51 + ((i%3)*getSlotSpacingX()), centerY - 45 + ((i/3)*getSlotSpacingY()), stack);
				i++;
			}
		}

		super.draw(g);
	}