public void closeInventory(){
		HUD.dispInv = false;
		if(HUD.inMouse != HUD.empty){
			//if bag is closed with object in hand then put it in first open one
			for(int i = 1; i < HUD.inventory.length; i++){
				if(HUD.inventory[i].getItemNum() == HUD.empty.getItemNum()){
					HUD.inventory[i] = HUD.inMouse;
					HUD.inMouse = HUD.empty;
				}
			}
			if(HUD.inMouse != HUD.empty && HUD.inventory[0] == HUD.empty){
				HUD.inventory[0] = HUD.inMouse;
			}
		}
	}